1 package ecar.pojo;
2
3
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.JoinTable;
14 import javax.persistence.ManyToMany;
15 import javax.persistence.ManyToOne;
16 import javax.persistence.OneToMany;
17 import javax.persistence.Table;
18 import org.hibernate.annotations.Cascade;
19 import org.hibernate.annotations.CascadeType;
20 import org.hibernate.annotations.GenericGenerator;
21
22
23
24
25 @Entity
26 @Table(name = "TB_TIPO_ACOMPANHAMENTO_TA")
27 public class TipoAcompanhamentoTa implements java.io.Serializable {
28
29 private Long codTa;
30 private String descricaoTa;
31 private String indLiberarAcompTa;
32 private String indMonitoramentoTa;
33 private String indNaoMonitoramentoTa;
34 private String indSepararOrgaoTa;
35 private Long seqApresentacaoTa;
36 private String indAtivoTa;
37 private Set<AcompReferenciaAref> acompReferenciaArefs = new HashSet<AcompReferenciaAref>(0);
38 private Set<TipoAcompFuncAcompTafc> tipoAcompFuncAcompTafcs = new HashSet<TipoAcompFuncAcompTafc>(0);
39 private Set<SisAtributoSatb> sisAtributoSatbs = new HashSet<SisAtributoSatb>(0);
40 private Set<EstAtribTipoAcompEata> estAtribTipoAcompEatas = new HashSet<EstAtribTipoAcompEata>(0);
41 private EstruturaEtt estruturaEtt;
42 private EstruturaEtt estruturaNivelGeracaoTa;
43 private Set<SituacaoSit> SituacaoSits = new HashSet<SituacaoSit>(0);
44 private Set<TipoAcompGrpAcesso> tipoAcompGrpAcessos = new HashSet<TipoAcompGrpAcesso>(0);
45 private Set<TipoAcompAbasSisatributoTaAbaSatb> tipoacompAbasSisatributoTaabasatbs = new HashSet<TipoAcompAbasSisatributoTaAbaSatb>(0);
46 private Set<TipoAcompTipofuncacompSisatributoTaTpfaSatb> tipoacompTipofuncacompSisatributoTatpfasatbs = new HashSet<TipoAcompTipofuncacompSisatributoTaTpfaSatb>(0);
47
48 public TipoAcompanhamentoTa() {
49 }
50
51 public TipoAcompanhamentoTa(String descricaoTa, String indLiberarAcompTa, String indMonitoramentoTa, String indNaoMonitoramentoTa, String indSepararOrgaoTa, Long seqApresentacaoTa, String indAtivoTa, Set<AcompReferenciaAref> acompReferenciaArefs, Set<TipoAcompFuncAcompTafc> tipoAcompFuncAcompTafcs, Set<SisAtributoSatb> sisAtributoSatbs, Set<EstAtribTipoAcompEata> estAtribTipoAcompEatas, EstruturaEtt estruturaEtt, EstruturaEtt estruturaNivelGeracaoTa, Set<SituacaoSit> SituacaoSits, Set<TipoAcompGrpAcesso> tipoAcompGrpAcessos, Set<TipoAcompAbasSisatributoTaAbaSatb> tipoacompAbasSisatributoTaabasatbs, Set<TipoAcompTipofuncacompSisatributoTaTpfaSatb> tipoacompTipofuncacompSisatributoTatpfasatbs) {
52 this.descricaoTa = descricaoTa;
53 this.indLiberarAcompTa = indLiberarAcompTa;
54 this.indMonitoramentoTa = indMonitoramentoTa;
55 this.indNaoMonitoramentoTa = indNaoMonitoramentoTa;
56 this.indSepararOrgaoTa = indSepararOrgaoTa;
57 this.seqApresentacaoTa = seqApresentacaoTa;
58 this.indAtivoTa = indAtivoTa;
59 this.acompReferenciaArefs = acompReferenciaArefs;
60 this.tipoAcompFuncAcompTafcs = tipoAcompFuncAcompTafcs;
61 this.sisAtributoSatbs = sisAtributoSatbs;
62 this.estAtribTipoAcompEatas = estAtribTipoAcompEatas;
63 this.estruturaEtt = estruturaEtt;
64 this.estruturaNivelGeracaoTa = estruturaNivelGeracaoTa;
65 this.SituacaoSits = SituacaoSits;
66 this.tipoAcompGrpAcessos = tipoAcompGrpAcessos;
67 this.tipoacompAbasSisatributoTaabasatbs = tipoacompAbasSisatributoTaabasatbs;
68 this.tipoacompTipofuncacompSisatributoTatpfasatbs = tipoacompTipofuncacompSisatributoTatpfasatbs;
69 }
70
71 @GenericGenerator(name = "generator", strategy = "increment")
72 @Id
73 @GeneratedValue(generator = "generator")
74 @Column(name = "COD_TA", nullable = false)
75 public Long getCodTa() {
76 return this.codTa;
77 }
78
79 public void setCodTa(Long codTa) {
80 this.codTa = codTa;
81 }
82
83 @Column(name = "DESCRICAO_TA", length = 30)
84 public String getDescricaoTa() {
85 return this.descricaoTa;
86 }
87
88 public void setDescricaoTa(String descricaoTa) {
89 this.descricaoTa = descricaoTa;
90 }
91
92 @Column(name = "IND_LIBERAR_ACOMP_TA", length = 1)
93 public String getIndLiberarAcompTa() {
94 return this.indLiberarAcompTa;
95 }
96
97 public void setIndLiberarAcompTa(String indLiberarAcompTa) {
98 this.indLiberarAcompTa = indLiberarAcompTa;
99 }
100
101 @Column(name = "IND_MONITORAMENTO_TA", length = 1)
102 public String getIndMonitoramentoTa() {
103 return this.indMonitoramentoTa;
104 }
105
106 public void setIndMonitoramentoTa(String indMonitoramentoTa) {
107 this.indMonitoramentoTa = indMonitoramentoTa;
108 }
109
110 @Column(name = "IND_NAO_MONITORAMENTO_TA", length = 1)
111 public String getIndNaoMonitoramentoTa() {
112 return this.indNaoMonitoramentoTa;
113 }
114
115 public void setIndNaoMonitoramentoTa(String indNaoMonitoramentoTa) {
116 this.indNaoMonitoramentoTa = indNaoMonitoramentoTa;
117 }
118
119 @Column(name = "IND_SEPARAR_ORGAO_TA", length = 1)
120 public String getIndSepararOrgaoTa() {
121 return this.indSepararOrgaoTa;
122 }
123
124 public void setIndSepararOrgaoTa(String indSepararOrgaoTa) {
125 this.indSepararOrgaoTa = indSepararOrgaoTa;
126 }
127
128 @Column(name = "SEQ_APRESENTACAO_TA", length = 3)
129 public Long getSeqApresentacaoTa() {
130 return this.seqApresentacaoTa;
131 }
132
133 public void setSeqApresentacaoTa(Long seqApresentacaoTa) {
134 this.seqApresentacaoTa = seqApresentacaoTa;
135 }
136
137 @Column(name = "IND_ATIVO_TA", length = 1)
138 public String getIndAtivoTa() {
139 return this.indAtivoTa;
140 }
141
142 public void setIndAtivoTa(String indAtivoTa) {
143 this.indAtivoTa = indAtivoTa;
144 }
145
146 @OneToMany(fetch = FetchType.LAZY, mappedBy = "tipoAcompanhamentoTa")
147 public Set<AcompReferenciaAref> getAcompReferenciaArefs() {
148 return this.acompReferenciaArefs;
149 }
150
151 public void setAcompReferenciaArefs(Set<AcompReferenciaAref> acompReferenciaArefs) {
152 this.acompReferenciaArefs = acompReferenciaArefs;
153 }
154
155 @OneToMany(fetch = FetchType.EAGER, mappedBy = "tipoAcompanhamentoTa")
156 public Set<TipoAcompFuncAcompTafc> getTipoAcompFuncAcompTafcs() {
157 return this.tipoAcompFuncAcompTafcs;
158 }
159
160 public void setTipoAcompFuncAcompTafcs(Set<TipoAcompFuncAcompTafc> tipoAcompFuncAcompTafcs) {
161 this.tipoAcompFuncAcompTafcs = tipoAcompFuncAcompTafcs;
162 }
163
164 @ManyToMany(fetch = FetchType.LAZY)
165 @JoinTable(name = "tb_tipo_acomp_satb_tasatb", joinColumns = { @JoinColumn(name = "COD_TA", nullable = false, updatable = false) }, inverseJoinColumns = { @JoinColumn(name = "COD_SATB", nullable = false, updatable = false) })
166 @Cascade( { CascadeType.SAVE_UPDATE })
167 public Set<SisAtributoSatb> getSisAtributoSatbs() {
168 return this.sisAtributoSatbs;
169 }
170
171 public void setSisAtributoSatbs(Set<SisAtributoSatb> sisAtributoSatbs) {
172 this.sisAtributoSatbs = sisAtributoSatbs;
173 }
174
175 @OneToMany(fetch = FetchType.LAZY, mappedBy = "tipoAcompanhamentoTa")
176 public Set<EstAtribTipoAcompEata> getEstAtribTipoAcompEatas() {
177 return this.estAtribTipoAcompEatas;
178 }
179
180 public void setEstAtribTipoAcompEatas(Set<EstAtribTipoAcompEata> estAtribTipoAcompEatas) {
181 this.estAtribTipoAcompEatas = estAtribTipoAcompEatas;
182 }
183
184 @ManyToOne(fetch = FetchType.LAZY)
185 @JoinColumn(name = "COD_ETT")
186 public EstruturaEtt getEstruturaEtt() {
187 return this.estruturaEtt;
188 }
189
190 public void setEstruturaEtt(EstruturaEtt estruturaEtt) {
191 this.estruturaEtt = estruturaEtt;
192 }
193
194 @ManyToOne(fetch = FetchType.LAZY)
195 @JoinColumn(name = "cod_ett_nivel_geracao_ta")
196 public EstruturaEtt getEstruturaNivelGeracaoTa() {
197 return this.estruturaNivelGeracaoTa;
198 }
199
200 public void setEstruturaNivelGeracaoTa(EstruturaEtt estruturaNivelGeracaoTa) {
201 this.estruturaNivelGeracaoTa = estruturaNivelGeracaoTa;
202 }
203
204 @ManyToMany(fetch = FetchType.LAZY)
205 @JoinTable(name = "tb_tipo_acomp_situacao_tasit", joinColumns = { @JoinColumn(name = "COD_TA", nullable = false, updatable = false) }, inverseJoinColumns = { @JoinColumn(name = "COD_SIT", nullable = false, updatable = false) })
206 @Cascade( { CascadeType.SAVE_UPDATE })
207 public Set<SituacaoSit> getSituacaoSits() {
208 return this.SituacaoSits;
209 }
210
211 public void setSituacaoSits(Set<SituacaoSit> SituacaoSits) {
212 this.SituacaoSits = SituacaoSits;
213 }
214
215 @OneToMany(fetch = FetchType.LAZY, mappedBy = "tipoAcompanhamentoTa")
216 public Set<TipoAcompGrpAcesso> getTipoAcompGrpAcessos() {
217 return this.tipoAcompGrpAcessos;
218 }
219
220 public void setTipoAcompGrpAcessos(Set<TipoAcompGrpAcesso> tipoAcompGrpAcessos) {
221 this.tipoAcompGrpAcessos = tipoAcompGrpAcessos;
222 }
223
224 @OneToMany(fetch = FetchType.LAZY, mappedBy = "tipoAcompanhamentoTa")
225 public Set<TipoAcompAbasSisatributoTaAbaSatb> getTipoacompAbasSisatributoTaabasatbs() {
226 return this.tipoacompAbasSisatributoTaabasatbs;
227 }
228
229 public void setTipoacompAbasSisatributoTaabasatbs(Set<TipoAcompAbasSisatributoTaAbaSatb> tipoacompAbasSisatributoTaabasatbs) {
230 this.tipoacompAbasSisatributoTaabasatbs = tipoacompAbasSisatributoTaabasatbs;
231 }
232
233 @OneToMany(fetch = FetchType.LAZY, mappedBy = "tipoAcompanhamentoTa")
234 public Set<TipoAcompTipofuncacompSisatributoTaTpfaSatb> getTipoacompTipofuncacompSisatributoTatpfasatbs() {
235 return this.tipoacompTipofuncacompSisatributoTatpfasatbs;
236 }
237
238 public void setTipoacompTipofuncacompSisatributoTatpfasatbs(Set<TipoAcompTipofuncacompSisatributoTaTpfaSatb> tipoacompTipofuncacompSisatributoTatpfasatbs) {
239 this.tipoacompTipofuncacompSisatributoTatpfasatbs = tipoacompTipofuncacompSisatributoTatpfasatbs;
240 }
241
242 }