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.OneToMany;
13  import javax.persistence.Table;
14  import org.hibernate.annotations.GenericGenerator;
15  
16  /**
17   * UploadTipoCategoriaUtc generated by hbm2java
18   */
19  @Entity
20  @Table(name = "TB_UPLOAD_TIPO_CATEGORIA_UTC")
21  public class UploadTipoCategoriaUtc implements java.io.Serializable {
22  
23    private Long codUtc;
24    private String nomeUtc;
25    private String urlJanelaUtc;
26    private Set<ItemEstrUplCategIettuc> itemEstrUplCategIettucs = new HashSet<ItemEstrUplCategIettuc>(0);
27    private Set<UploadTipoArquivoUta> uploadTipoArquivoUtas = new HashSet<UploadTipoArquivoUta>(0);
28  
29    public UploadTipoCategoriaUtc() {
30    }
31  
32    public UploadTipoCategoriaUtc(String nomeUtc, String urlJanelaUtc, Set<ItemEstrUplCategIettuc> itemEstrUplCategIettucs, Set<UploadTipoArquivoUta> uploadTipoArquivoUtas) {
33      this.nomeUtc = nomeUtc;
34      this.urlJanelaUtc = urlJanelaUtc;
35      this.itemEstrUplCategIettucs = itemEstrUplCategIettucs;
36      this.uploadTipoArquivoUtas = uploadTipoArquivoUtas;
37    }
38  
39    @GenericGenerator(name = "generator", strategy = "increment")
40    @Id
41    @GeneratedValue(generator = "generator")
42    @Column(name = "COD_UTC", nullable = false)
43    public Long getCodUtc() {
44      return this.codUtc;
45    }
46  
47    public void setCodUtc(Long codUtc) {
48      this.codUtc = codUtc;
49    }
50  
51    @Column(name = "NOME_UTC", length = 20)
52    public String getNomeUtc() {
53      return this.nomeUtc;
54    }
55  
56    public void setNomeUtc(String nomeUtc) {
57      this.nomeUtc = nomeUtc;
58    }
59  
60    @Column(name = "URL_JANELA_UTC", length = 100)
61    public String getUrlJanelaUtc() {
62      return this.urlJanelaUtc;
63    }
64  
65    public void setUrlJanelaUtc(String urlJanelaUtc) {
66      this.urlJanelaUtc = urlJanelaUtc;
67    }
68  
69    @OneToMany(fetch = FetchType.LAZY, mappedBy = "uploadTipoCategoriaUtc")
70    public Set<ItemEstrUplCategIettuc> getItemEstrUplCategIettucs() {
71      return this.itemEstrUplCategIettucs;
72    }
73  
74    public void setItemEstrUplCategIettucs(Set<ItemEstrUplCategIettuc> itemEstrUplCategIettucs) {
75      this.itemEstrUplCategIettucs = itemEstrUplCategIettucs;
76    }
77  
78    @OneToMany(fetch = FetchType.LAZY, mappedBy = "uploadTipoCategoriaUtc")
79    public Set<UploadTipoArquivoUta> getUploadTipoArquivoUtas() {
80      return this.uploadTipoArquivoUtas;
81    }
82  
83    public void setUploadTipoArquivoUtas(Set<UploadTipoArquivoUta> uploadTipoArquivoUtas) {
84      this.uploadTipoArquivoUtas = uploadTipoArquivoUtas;
85    }
86  
87  }