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.GeneratedValue;
11  import javax.persistence.Id;
12  import javax.persistence.JoinColumn;
13  import javax.persistence.ManyToOne;
14  import javax.persistence.OneToMany;
15  import javax.persistence.Table;
16  import org.hibernate.annotations.GenericGenerator;
17  
18  /**
19   * EmpresaEmp generated by hbm2java
20   */
21  @Entity
22  @Table(name = "TB_EMPRESA_EMP")
23  public class EmpresaEmp implements java.io.Serializable {
24  
25    private Long codEmp;
26    private String siglaEmp;
27    private String razaoSocialEmp;
28    private String cnpjCpfEmp;
29    private String complementoEmp;
30    private String enderecoEmp;
31    private String inscrEstadualEmp;
32    private String bairroEmp;
33    private String telefone2Emp;
34    private String ddd2Emp;
35    private String telefone1Emp;
36    private String ddd1Emp;
37    private String cepEmp;
38    private String cidadeEmp;
39    private String logotipoEmailEmp;
40    private String logotipoEmp;
41    private String homePageEmp;
42    private String emailErrosEmp;
43    private String emailContatoEmp;
44    private String faxEmp;
45    private String dddFaxEmp;
46    private String inscrMunicipalEmp;
47    private String logotipoRelatorioEmp;
48    private Set<TextosSiteTxt> textosSiteTxts = new HashSet<TextosSiteTxt>(0);
49    private Uf uf;
50  
51    public EmpresaEmp() {
52    }
53  
54    public EmpresaEmp(String siglaEmp, String razaoSocialEmp, String cnpjCpfEmp, String complementoEmp, String enderecoEmp, String inscrEstadualEmp, String bairroEmp, String telefone2Emp, String ddd2Emp, String telefone1Emp, String ddd1Emp, String cepEmp, String cidadeEmp, String logotipoEmailEmp, String logotipoEmp, String homePageEmp, String emailErrosEmp, String emailContatoEmp, String faxEmp, String dddFaxEmp, String inscrMunicipalEmp, String logotipoRelatorioEmp, Set<TextosSiteTxt> textosSiteTxts, Uf uf) {
55      this.siglaEmp = siglaEmp;
56      this.razaoSocialEmp = razaoSocialEmp;
57      this.cnpjCpfEmp = cnpjCpfEmp;
58      this.complementoEmp = complementoEmp;
59      this.enderecoEmp = enderecoEmp;
60      this.inscrEstadualEmp = inscrEstadualEmp;
61      this.bairroEmp = bairroEmp;
62      this.telefone2Emp = telefone2Emp;
63      this.ddd2Emp = ddd2Emp;
64      this.telefone1Emp = telefone1Emp;
65      this.ddd1Emp = ddd1Emp;
66      this.cepEmp = cepEmp;
67      this.cidadeEmp = cidadeEmp;
68      this.logotipoEmailEmp = logotipoEmailEmp;
69      this.logotipoEmp = logotipoEmp;
70      this.homePageEmp = homePageEmp;
71      this.emailErrosEmp = emailErrosEmp;
72      this.emailContatoEmp = emailContatoEmp;
73      this.faxEmp = faxEmp;
74      this.dddFaxEmp = dddFaxEmp;
75      this.inscrMunicipalEmp = inscrMunicipalEmp;
76      this.logotipoRelatorioEmp = logotipoRelatorioEmp;
77      this.textosSiteTxts = textosSiteTxts;
78      this.uf = uf;
79    }
80  
81    @GenericGenerator(name = "generator", strategy = "increment")
82    @Id
83    @GeneratedValue(generator = "generator")
84    @Column(name = "COD_EMP", nullable = false)
85    public Long getCodEmp() {
86      return this.codEmp;
87    }
88  
89    public void setCodEmp(Long codEmp) {
90      this.codEmp = codEmp;
91    }
92  
93    @Column(name = "SIGLA_EMP", length = 20)
94    public String getSiglaEmp() {
95      return this.siglaEmp;
96    }
97  
98    public void setSiglaEmp(String siglaEmp) {
99      this.siglaEmp = siglaEmp;
100   }
101 
102   @Column(name = "RAZAO_SOCIAL_EMP", length = 50)
103   public String getRazaoSocialEmp() {
104     return this.razaoSocialEmp;
105   }
106 
107   public void setRazaoSocialEmp(String razaoSocialEmp) {
108     this.razaoSocialEmp = razaoSocialEmp;
109   }
110 
111   @Column(name = "CNPJ_CPF_EMP", length = 14)
112   public String getCnpjCpfEmp() {
113     return this.cnpjCpfEmp;
114   }
115 
116   public void setCnpjCpfEmp(String cnpjCpfEmp) {
117     this.cnpjCpfEmp = cnpjCpfEmp;
118   }
119 
120   @Column(name = "COMPLEMENTO_EMP", length = 40)
121   public String getComplementoEmp() {
122     return this.complementoEmp;
123   }
124 
125   public void setComplementoEmp(String complementoEmp) {
126     this.complementoEmp = complementoEmp;
127   }
128 
129   @Column(name = "ENDERECO_EMP", length = 50)
130   public String getEnderecoEmp() {
131     return this.enderecoEmp;
132   }
133 
134   public void setEnderecoEmp(String enderecoEmp) {
135     this.enderecoEmp = enderecoEmp;
136   }
137 
138   @Column(name = "INSCR_ESTADUAL_EMP", length = 15)
139   public String getInscrEstadualEmp() {
140     return this.inscrEstadualEmp;
141   }
142 
143   public void setInscrEstadualEmp(String inscrEstadualEmp) {
144     this.inscrEstadualEmp = inscrEstadualEmp;
145   }
146 
147   @Column(name = "BAIRRO_EMP", length = 40)
148   public String getBairroEmp() {
149     return this.bairroEmp;
150   }
151 
152   public void setBairroEmp(String bairroEmp) {
153     this.bairroEmp = bairroEmp;
154   }
155 
156   @Column(name = "TELEFONE2_EMP", length = 10)
157   public String getTelefone2Emp() {
158     return this.telefone2Emp;
159   }
160 
161   public void setTelefone2Emp(String telefone2Emp) {
162     this.telefone2Emp = telefone2Emp;
163   }
164 
165   @Column(name = "DDD2_EMP", length = 3)
166   public String getDdd2Emp() {
167     return this.ddd2Emp;
168   }
169 
170   public void setDdd2Emp(String ddd2Emp) {
171     this.ddd2Emp = ddd2Emp;
172   }
173 
174   @Column(name = "TELEFONE1_EMP", length = 10)
175   public String getTelefone1Emp() {
176     return this.telefone1Emp;
177   }
178 
179   public void setTelefone1Emp(String telefone1Emp) {
180     this.telefone1Emp = telefone1Emp;
181   }
182 
183   @Column(name = "DDD1_EMP", length = 3)
184   public String getDdd1Emp() {
185     return this.ddd1Emp;
186   }
187 
188   public void setDdd1Emp(String ddd1Emp) {
189     this.ddd1Emp = ddd1Emp;
190   }
191 
192   @Column(name = "CEP_EMP", length = 8)
193   public String getCepEmp() {
194     return this.cepEmp;
195   }
196 
197   public void setCepEmp(String cepEmp) {
198     this.cepEmp = cepEmp;
199   }
200 
201   @Column(name = "CIDADE_EMP", length = 40)
202   public String getCidadeEmp() {
203     return this.cidadeEmp;
204   }
205 
206   public void setCidadeEmp(String cidadeEmp) {
207     this.cidadeEmp = cidadeEmp;
208   }
209 
210   @Column(name = "LOGOTIPO_EMAIL_EMP", length = 100)
211   public String getLogotipoEmailEmp() {
212     return this.logotipoEmailEmp;
213   }
214 
215   public void setLogotipoEmailEmp(String logotipoEmailEmp) {
216     this.logotipoEmailEmp = logotipoEmailEmp;
217   }
218 
219   @Column(name = "LOGOTIPO_EMP", length = 100)
220   public String getLogotipoEmp() {
221     return this.logotipoEmp;
222   }
223 
224   public void setLogotipoEmp(String logotipoEmp) {
225     this.logotipoEmp = logotipoEmp;
226   }
227 
228   @Column(name = "HOME_PAGE_EMP", length = 40)
229   public String getHomePageEmp() {
230     return this.homePageEmp;
231   }
232 
233   public void setHomePageEmp(String homePageEmp) {
234     this.homePageEmp = homePageEmp;
235   }
236 
237   @Column(name = "EMAIL_ERROS_EMP", length = 50)
238   public String getEmailErrosEmp() {
239     return this.emailErrosEmp;
240   }
241 
242   public void setEmailErrosEmp(String emailErrosEmp) {
243     this.emailErrosEmp = emailErrosEmp;
244   }
245 
246   @Column(name = "EMAIL_CONTATO_EMP", length = 50)
247   public String getEmailContatoEmp() {
248     return this.emailContatoEmp;
249   }
250 
251   public void setEmailContatoEmp(String emailContatoEmp) {
252     this.emailContatoEmp = emailContatoEmp;
253   }
254 
255   @Column(name = "FAX_EMP", length = 10)
256   public String getFaxEmp() {
257     return this.faxEmp;
258   }
259 
260   public void setFaxEmp(String faxEmp) {
261     this.faxEmp = faxEmp;
262   }
263 
264   @Column(name = "DDD_FAX_EMP", length = 3)
265   public String getDddFaxEmp() {
266     return this.dddFaxEmp;
267   }
268 
269   public void setDddFaxEmp(String dddFaxEmp) {
270     this.dddFaxEmp = dddFaxEmp;
271   }
272 
273   @Column(name = "INSCR_MUNICIPAL_EMP", length = 15)
274   public String getInscrMunicipalEmp() {
275     return this.inscrMunicipalEmp;
276   }
277 
278   public void setInscrMunicipalEmp(String inscrMunicipalEmp) {
279     this.inscrMunicipalEmp = inscrMunicipalEmp;
280   }
281 
282   @Column(name = "LOGOTIPO_RELATORIO_EMP", length = 100)
283   public String getLogotipoRelatorioEmp() {
284     return this.logotipoRelatorioEmp;
285   }
286 
287   public void setLogotipoRelatorioEmp(String logotipoRelatorioEmp) {
288     this.logotipoRelatorioEmp = logotipoRelatorioEmp;
289   }
290 
291   @OneToMany(fetch = FetchType.LAZY, mappedBy = "empresaEmp")
292   public Set<TextosSiteTxt> getTextosSiteTxts() {
293     return this.textosSiteTxts;
294   }
295 
296   public void setTextosSiteTxts(Set<TextosSiteTxt> textosSiteTxts) {
297     this.textosSiteTxts = textosSiteTxts;
298   }
299 
300   @ManyToOne(fetch = FetchType.LAZY)
301   @JoinColumn(name = "COD_UF")
302   public Uf getUf() {
303     return this.uf;
304   }
305 
306   public void setUf(Uf uf) {
307     this.uf = uf;
308   }
309 
310 }