View Javadoc

1   package ecar.pojo;
2   
3   // Generated Aug 13, 2009 2:24:15 PM by Hibernate Tools 3.2.0.CR1
4   
5   import java.util.HashSet;
6   import java.util.Set;
7   import javax.persistence.Column;
8   import javax.persistence.Entity;
9   import javax.persistence.FetchType;
10  import javax.persistence.Id;
11  import javax.persistence.OneToMany;
12  import javax.persistence.Table;
13  
14  /**
15   * Uf generated by hbm2java
16   */
17  @Entity
18  @Table(name = "TB_UF")
19  public class Uf implements java.io.Serializable {
20  
21    private String codUf;
22    private String descricaoUf;
23    private Set<EmpresaEmp> empresaEmps = new HashSet<EmpresaEmp>(0);
24    private Set<UsuarioUsu> usuarioUsusByComercUfUsu = new HashSet<UsuarioUsu>(0);
25    private Set<UsuarioUsu> usuarioUsusByResidUfUsu = new HashSet<UsuarioUsu>(0);
26    private Set<EnderecoEnd> enderecoEnds = new HashSet<EnderecoEnd>(0);
27  
28    public Uf() {
29    }
30  
31    public Uf(String codUf) {
32      this.codUf = codUf;
33    }
34  
35    public Uf(String codUf, String descricaoUf, Set<EmpresaEmp> empresaEmps, Set<UsuarioUsu> usuarioUsusByComercUfUsu, Set<UsuarioUsu> usuarioUsusByResidUfUsu, Set<EnderecoEnd> enderecoEnds) {
36      this.codUf = codUf;
37      this.descricaoUf = descricaoUf;
38      this.empresaEmps = empresaEmps;
39      this.usuarioUsusByComercUfUsu = usuarioUsusByComercUfUsu;
40      this.usuarioUsusByResidUfUsu = usuarioUsusByResidUfUsu;
41      this.enderecoEnds = enderecoEnds;
42    }
43  
44    @Id
45    @Column(name = "COD_UF", nullable = false)
46    public String getCodUf() {
47      return this.codUf;
48    }
49  
50    public void setCodUf(String codUf) {
51      this.codUf = codUf;
52    }
53  
54    @Column(name = "DESCRICAO_UF", length = 30)
55    public String getDescricaoUf() {
56      return this.descricaoUf;
57    }
58  
59    public void setDescricaoUf(String descricaoUf) {
60      this.descricaoUf = descricaoUf;
61    }
62  
63    @OneToMany(fetch = FetchType.LAZY, mappedBy = "uf")
64    public Set<EmpresaEmp> getEmpresaEmps() {
65      return this.empresaEmps;
66    }
67  
68    public void setEmpresaEmps(Set<EmpresaEmp> empresaEmps) {
69      this.empresaEmps = empresaEmps;
70    }
71  
72    @OneToMany(fetch = FetchType.LAZY, mappedBy = "ufByComercUfUsu")
73    public Set<UsuarioUsu> getUsuarioUsusByComercUfUsu() {
74      return this.usuarioUsusByComercUfUsu;
75    }
76  
77    public void setUsuarioUsusByComercUfUsu(Set<UsuarioUsu> usuarioUsusByComercUfUsu) {
78      this.usuarioUsusByComercUfUsu = usuarioUsusByComercUfUsu;
79    }
80  
81    @OneToMany(fetch = FetchType.LAZY, mappedBy = "ufByResidUfUsu")
82    public Set<UsuarioUsu> getUsuarioUsusByResidUfUsu() {
83      return this.usuarioUsusByResidUfUsu;
84    }
85  
86    public void setUsuarioUsusByResidUfUsu(Set<UsuarioUsu> usuarioUsusByResidUfUsu) {
87      this.usuarioUsusByResidUfUsu = usuarioUsusByResidUfUsu;
88    }
89  
90    @OneToMany(fetch = FetchType.LAZY, mappedBy = "uf")
91    public Set<EnderecoEnd> getEnderecoEnds() {
92      return this.enderecoEnds;
93    }
94  
95    public void setEnderecoEnds(Set<EnderecoEnd> enderecoEnds) {
96      this.enderecoEnds = enderecoEnds;
97    }
98  
99  }