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   * AtributosAtb generated by hbm2java
20   */
21  @Entity
22  @Table(name = "TB_ATRIBUTOS_ATB")
23  public class AtributosAtb implements java.io.Serializable {
24  
25    private Long codAtb;
26    private String indAtivoAtb;
27    private String labelPadraoAtb;
28    private String nomeAtb;
29    private String indExclusivoEstruturaAtb;
30    private String indOpcionalAtb;
31    private String nomeFkAtb;
32    private String codFkAtb;
33    private String documentacaoAtb;
34    private SisGrupoAtributoSga sisGrupoAtributoSga;
35    private Set<EstruturaAtributoEttat> estruturaAtributoEttats = new HashSet<EstruturaAtributoEttat>(0);
36  
37    public AtributosAtb() {
38    }
39  
40    public AtributosAtb(String indAtivoAtb, String labelPadraoAtb, String nomeAtb, String indExclusivoEstruturaAtb, String indOpcionalAtb, String nomeFkAtb, String codFkAtb, String documentacaoAtb, SisGrupoAtributoSga sisGrupoAtributoSga, Set<EstruturaAtributoEttat> estruturaAtributoEttats) {
41      this.indAtivoAtb = indAtivoAtb;
42      this.labelPadraoAtb = labelPadraoAtb;
43      this.nomeAtb = nomeAtb;
44      this.indExclusivoEstruturaAtb = indExclusivoEstruturaAtb;
45      this.indOpcionalAtb = indOpcionalAtb;
46      this.nomeFkAtb = nomeFkAtb;
47      this.codFkAtb = codFkAtb;
48      this.documentacaoAtb = documentacaoAtb;
49      this.sisGrupoAtributoSga = sisGrupoAtributoSga;
50      this.estruturaAtributoEttats = estruturaAtributoEttats;
51    }
52  
53    @GenericGenerator(name = "generator", strategy = "increment")
54    @Id
55    @GeneratedValue(generator = "generator")
56    @Column(name = "COD_ATB", nullable = false)
57    public Long getCodAtb() {
58      return this.codAtb;
59    }
60  
61    public void setCodAtb(Long codAtb) {
62      this.codAtb = codAtb;
63    }
64  
65    @Column(name = "IND_ATIVO_ATB", length = 1)
66    public String getIndAtivoAtb() {
67      return this.indAtivoAtb;
68    }
69  
70    public void setIndAtivoAtb(String indAtivoAtb) {
71      this.indAtivoAtb = indAtivoAtb;
72    }
73  
74    @Column(name = "LABEL_PADRAO_ATB", length = 40)
75    public String getLabelPadraoAtb() {
76      return this.labelPadraoAtb;
77    }
78  
79    public void setLabelPadraoAtb(String labelPadraoAtb) {
80      this.labelPadraoAtb = labelPadraoAtb;
81    }
82  
83    @Column(name = "NOME_ATB", length = 40)
84    public String getNomeAtb() {
85      return this.nomeAtb;
86    }
87  
88    public void setNomeAtb(String nomeAtb) {
89      this.nomeAtb = nomeAtb;
90    }
91  
92    @Column(name = "IND_EXCLUSIVO_ESTRUTURA_ATB", length = 1)
93    public String getIndExclusivoEstruturaAtb() {
94      return this.indExclusivoEstruturaAtb;
95    }
96  
97    public void setIndExclusivoEstruturaAtb(String indExclusivoEstruturaAtb) {
98      this.indExclusivoEstruturaAtb = indExclusivoEstruturaAtb;
99    }
100 
101   @Column(name = "IND_OPCIONAL_ATB", length = 1)
102   public String getIndOpcionalAtb() {
103     return this.indOpcionalAtb;
104   }
105 
106   public void setIndOpcionalAtb(String indOpcionalAtb) {
107     this.indOpcionalAtb = indOpcionalAtb;
108   }
109 
110   @Column(name = "NOME_FK_ATB", length = 40)
111   public String getNomeFkAtb() {
112     return this.nomeFkAtb;
113   }
114 
115   public void setNomeFkAtb(String nomeFkAtb) {
116     this.nomeFkAtb = nomeFkAtb;
117   }
118 
119   @Column(name = "COD_FK_ATB", length = 40)
120   public String getCodFkAtb() {
121     return this.codFkAtb;
122   }
123 
124   public void setCodFkAtb(String codFkAtb) {
125     this.codFkAtb = codFkAtb;
126   }
127 
128   @Column(name = "DOCUMENTACAO_ATB", length = 2000)
129   public String getDocumentacaoAtb() {
130     return this.documentacaoAtb;
131   }
132 
133   public void setDocumentacaoAtb(String documentacaoAtb) {
134     this.documentacaoAtb = documentacaoAtb;
135   }
136 
137   @ManyToOne(fetch = FetchType.LAZY)
138   @JoinColumn(name = "COD_SGA")
139   public SisGrupoAtributoSga getSisGrupoAtributoSga() {
140     return this.sisGrupoAtributoSga;
141   }
142 
143   public void setSisGrupoAtributoSga(SisGrupoAtributoSga sisGrupoAtributoSga) {
144     this.sisGrupoAtributoSga = sisGrupoAtributoSga;
145   }
146 
147   @OneToMany(fetch = FetchType.LAZY, mappedBy = "atributosAtb")
148   public Set<EstruturaAtributoEttat> getEstruturaAtributoEttats() {
149     return this.estruturaAtributoEttats;
150   }
151 
152   public void setEstruturaAtributoEttats(Set<EstruturaAtributoEttat> estruturaAtributoEttats) {
153     this.estruturaAtributoEttats = estruturaAtributoEttats;
154   }
155 
156 }