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 javax.persistence.Column;
6   import javax.persistence.Entity;
7   import javax.persistence.FetchType;
8   import javax.persistence.GeneratedValue;
9   import javax.persistence.Id;
10  import javax.persistence.JoinColumn;
11  import javax.persistence.ManyToOne;
12  import javax.persistence.Table;
13  import org.hibernate.annotations.GenericGenerator;
14  
15  /**
16   * EnderecoEnd generated by hbm2java
17   */
18  @Entity
19  @Table(name = "TB_ENDERECO_END")
20  public class EnderecoEnd implements java.io.Serializable {
21  
22    private Long codEnd;
23    private String enderecoEnd;
24    private String complementoEnd;
25    private String bairroEnd;
26    private String cidadeEnd;
27    private Integer cepEnd;
28    private String idEnd;
29    private EntidadeEnt entidadeEnt;
30    private TipoEnderecoTend tipoEnderecoTend;
31    private Uf uf;
32  
33    public EnderecoEnd() {
34    }
35  
36    public EnderecoEnd(String enderecoEnd, String complementoEnd, String bairroEnd, String cidadeEnd, Integer cepEnd, String idEnd, EntidadeEnt entidadeEnt, TipoEnderecoTend tipoEnderecoTend, Uf uf) {
37      this.enderecoEnd = enderecoEnd;
38      this.complementoEnd = complementoEnd;
39      this.bairroEnd = bairroEnd;
40      this.cidadeEnd = cidadeEnd;
41      this.cepEnd = cepEnd;
42      this.idEnd = idEnd;
43      this.entidadeEnt = entidadeEnt;
44      this.tipoEnderecoTend = tipoEnderecoTend;
45      this.uf = uf;
46    }
47  
48    @GenericGenerator(name = "generator", strategy = "increment")
49    @Id
50    @GeneratedValue(generator = "generator")
51    @Column(name = "COD_END", nullable = false)
52    public Long getCodEnd() {
53      return this.codEnd;
54    }
55  
56    public void setCodEnd(Long codEnd) {
57      this.codEnd = codEnd;
58    }
59  
60    @Column(name = "ENDERECO_END", length = 50)
61    public String getEnderecoEnd() {
62      return this.enderecoEnd;
63    }
64  
65    public void setEnderecoEnd(String enderecoEnd) {
66      this.enderecoEnd = enderecoEnd;
67    }
68  
69    @Column(name = "COMPLEMENTO_END", length = 40)
70    public String getComplementoEnd() {
71      return this.complementoEnd;
72    }
73  
74    public void setComplementoEnd(String complementoEnd) {
75      this.complementoEnd = complementoEnd;
76    }
77  
78    @Column(name = "BAIRRO_END", length = 40)
79    public String getBairroEnd() {
80      return this.bairroEnd;
81    }
82  
83    public void setBairroEnd(String bairroEnd) {
84      this.bairroEnd = bairroEnd;
85    }
86  
87    @Column(name = "CIDADE_END", length = 40)
88    public String getCidadeEnd() {
89      return this.cidadeEnd;
90    }
91  
92    public void setCidadeEnd(String cidadeEnd) {
93      this.cidadeEnd = cidadeEnd;
94    }
95  
96    @Column(name = "CEP_END", length = 8)
97    public Integer getCepEnd() {
98      return this.cepEnd;
99    }
100 
101   public void setCepEnd(Integer cepEnd) {
102     this.cepEnd = cepEnd;
103   }
104 
105   @Column(name = "ID_END", length = 30)
106   public String getIdEnd() {
107     return this.idEnd;
108   }
109 
110   public void setIdEnd(String idEnd) {
111     this.idEnd = idEnd;
112   }
113 
114   @ManyToOne(fetch = FetchType.LAZY)
115   @JoinColumn(name = "COD_ENT")
116   public EntidadeEnt getEntidadeEnt() {
117     return this.entidadeEnt;
118   }
119 
120   public void setEntidadeEnt(EntidadeEnt entidadeEnt) {
121     this.entidadeEnt = entidadeEnt;
122   }
123 
124   @ManyToOne(fetch = FetchType.LAZY)
125   @JoinColumn(name = "COD_TPEND")
126   public TipoEnderecoTend getTipoEnderecoTend() {
127     return this.tipoEnderecoTend;
128   }
129 
130   public void setTipoEnderecoTend(TipoEnderecoTend tipoEnderecoTend) {
131     this.tipoEnderecoTend = tipoEnderecoTend;
132   }
133 
134   @ManyToOne(fetch = FetchType.LAZY)
135   @JoinColumn(name = "COD_UF")
136   public Uf getUf() {
137     return this.uf;
138   }
139 
140   public void setUf(Uf uf) {
141     this.uf = uf;
142   }
143 
144 }