1 package ecar.pojo;
2
3
4
5 import java.util.Date;
6 import java.util.HashSet;
7 import java.util.Set;
8 import javax.persistence.CascadeType;
9 import javax.persistence.Column;
10 import javax.persistence.Entity;
11 import javax.persistence.FetchType;
12 import javax.persistence.GeneratedValue;
13 import javax.persistence.Id;
14 import javax.persistence.JoinColumn;
15 import javax.persistence.JoinTable;
16 import javax.persistence.ManyToMany;
17 import javax.persistence.ManyToOne;
18 import javax.persistence.OneToMany;
19 import javax.persistence.Table;
20 import javax.persistence.Temporal;
21 import javax.persistence.TemporalType;
22 import org.hibernate.annotations.Cascade;
23 import org.hibernate.annotations.GenericGenerator;
24
25
26
27
28 @Entity
29 @Table(name = "TB_SIS_ATRIBUTO_SATB")
30 public class SisAtributoSatb implements java.io.Serializable {
31
32 private static final long serialVersionUID = 3229620432128362416L;
33 public final static String ATIVO = "S";
34 public final static String INATIVO = "N";
35
36 private Long codSatb;
37 private Date dataInclusaoSatb;
38 private String indAtivoSatb;
39 private String descricaoSatb;
40 private String atribInfCompSatb;
41 private SisGrupoAtributoSga sisGrupoAtributoSga;
42 private Set<UsuarioAtributoUsua> usuarioAtributoUsuas = new HashSet<UsuarioAtributoUsua>(0);
43 private Set<SegmentoSgt> segmentoTpAcessoSgttas = new HashSet<SegmentoSgt>(0);
44 private Set<ItemEstruturaIett> itemEstruturaNivelIettns = new HashSet<ItemEstruturaIett>(0);
45 private Set<ItemEstrutUsuarioIettus> itemEstrutUsuarioIettuses = new HashSet<ItemEstrutUsuarioIettus>(0);
46 private Set<PontoCriticoPtc> pontoCriticoPtcs = new HashSet<PontoCriticoPtc>(0);
47 private Set<SegmentoItemSgti> segmentoItemTpacesSgtitas = new HashSet<SegmentoItemSgti>(0);
48 private Set<TipoAcompanhamentoTa> tipoAcompanhamentoTas = new HashSet<TipoAcompanhamentoTa>(0);
49 private Set<SegmentoCategoriaSgtc> segmentoCategTpAcessSgts = new HashSet<SegmentoCategoriaSgtc>(0);
50 private Set<SegmentoItemSgti> segmentoSisAtribSgtsas = new HashSet<SegmentoItemSgti>(0);
51 private Set<EstruturaAcessoEtta> estruturaAcessoEttas = new HashSet<EstruturaAcessoEtta>(0);
52 private Set<ConfiguracaoCfg> configuracaoCfgsByCodSacapa = new HashSet<ConfiguracaoCfg>(0);
53 private Set<ConfiguracaoCfg> configuracaoCfgsByCodSapadrao = new HashSet<ConfiguracaoCfg>(0);
54 private Set<LocAtributoLoca> locAtributoLocas = new HashSet<LocAtributoLoca>(0);
55 private Set<EntidadeAtributoEnta> entidadeAtributoEntas = new HashSet<EntidadeAtributoEnta>(0);
56 private Set<DemAtributoDema> demAtributoDemas = new HashSet<DemAtributoDema>(0);
57 private Set<ItemEstrtIndResulIettr> itemEstrtIndResulIettrs = new HashSet<ItemEstrtIndResulIettr>(0);
58 private Set<AgendaAge> agendaAges = new HashSet<AgendaAge>(0);
59 private Set<ItemEstruturaSisAtributoIettSatb> itemEstruturaSisAtributoIettSatbs = new HashSet<ItemEstruturaSisAtributoIettSatb>(0);
60 private Set<HistoricoIettSatbH> historicoIettSatbHs = new HashSet<HistoricoIettSatbH>(0);
61 private Set<TipoAcompGrpAcesso> tipoAcompGrpAcessos = new HashSet<TipoAcompGrpAcesso>(0);
62 private Set<TipoAcompTipofuncacompSisatributoTaTpfaSatb> tipoacompTipofuncacompSisatributoTatpfasatbs = new HashSet<TipoAcompTipofuncacompSisatributoTaTpfaSatb>(0);
63 private Set<TipoAcompAbasSisatributoTaAbaSatb> tipoacompAbasSisatributoTaabasatbs = new HashSet<TipoAcompAbasSisatributoTaAbaSatb>(0);
64
65 public SisAtributoSatb() {
66 }
67
68 public SisAtributoSatb(Date dataInclusaoSatb, String indAtivoSatb, String descricaoSatb, String atribInfCompSatb, Set<UsuarioAtributoUsua> usuarioAtributoUsuas, Set<SegmentoSgt> segmentoTpAcessoSgttas, Set<ItemEstruturaIett> itemEstruturaNivelIettns, Set<ItemEstrutUsuarioIettus> itemEstrutUsuarioIettuses, Set<PontoCriticoPtc> pontoCriticoPtcs, Set<SegmentoItemSgti> segmentoItemTpacesSgtitas, Set<TipoAcompanhamentoTa> tipoAcompanhamentoTas, Set<SegmentoCategoriaSgtc> segmentoCategTpAcessSgts, Set<SegmentoItemSgti> segmentoSisAtribSgtsas, Set<EstruturaAcessoEtta> estruturaAcessoEttas, Set<ConfiguracaoCfg> configuracaoCfgsByCodSacapa, Set<ConfiguracaoCfg> configuracaoCfgsByCodSapadrao, SisGrupoAtributoSga sisGrupoAtributoSga, Set<LocAtributoLoca> locAtributoLocas, Set<EntidadeAtributoEnta> entidadeAtributoEntas, Set<DemAtributoDema> demAtributoDemas, Set<ItemEstrtIndResulIettr> itemEstrtIndResulIettrs, Set<AgendaAge> agendaAges, Set<ItemEstruturaSisAtributoIettSatb> itemEstruturaSisAtributoIettSatbs, Set<HistoricoIettSatbH> historicoIettSatbHs, Set<TipoAcompGrpAcesso> tipoAcompGrpAcessos, Set<TipoAcompTipofuncacompSisatributoTaTpfaSatb> tipoacompTipofuncacompSisatributoTatpfasatbs, Set<TipoAcompAbasSisatributoTaAbaSatb> tipoacompAbasSisatributoTaabasatbs) {
69 this.dataInclusaoSatb = dataInclusaoSatb;
70 this.indAtivoSatb = indAtivoSatb;
71 this.descricaoSatb = descricaoSatb;
72 this.atribInfCompSatb = atribInfCompSatb;
73 this.usuarioAtributoUsuas = usuarioAtributoUsuas;
74 this.segmentoTpAcessoSgttas = segmentoTpAcessoSgttas;
75 this.itemEstruturaNivelIettns = itemEstruturaNivelIettns;
76 this.itemEstrutUsuarioIettuses = itemEstrutUsuarioIettuses;
77 this.pontoCriticoPtcs = pontoCriticoPtcs;
78 this.segmentoItemTpacesSgtitas = segmentoItemTpacesSgtitas;
79 this.tipoAcompanhamentoTas = tipoAcompanhamentoTas;
80 this.segmentoCategTpAcessSgts = segmentoCategTpAcessSgts;
81 this.segmentoSisAtribSgtsas = segmentoSisAtribSgtsas;
82 this.estruturaAcessoEttas = estruturaAcessoEttas;
83 this.configuracaoCfgsByCodSacapa = configuracaoCfgsByCodSacapa;
84 this.configuracaoCfgsByCodSapadrao = configuracaoCfgsByCodSapadrao;
85 this.sisGrupoAtributoSga = sisGrupoAtributoSga;
86 this.locAtributoLocas = locAtributoLocas;
87 this.entidadeAtributoEntas = entidadeAtributoEntas;
88 this.demAtributoDemas = demAtributoDemas;
89 this.itemEstrtIndResulIettrs = itemEstrtIndResulIettrs;
90 this.agendaAges = agendaAges;
91 this.itemEstruturaSisAtributoIettSatbs = itemEstruturaSisAtributoIettSatbs;
92 this.historicoIettSatbHs = historicoIettSatbHs;
93 this.tipoAcompGrpAcessos = tipoAcompGrpAcessos;
94 this.tipoacompTipofuncacompSisatributoTatpfasatbs = tipoacompTipofuncacompSisatributoTatpfasatbs;
95 this.tipoacompAbasSisatributoTaabasatbs = tipoacompAbasSisatributoTaabasatbs;
96 }
97
98 @GenericGenerator(name = "generator", strategy = "increment")
99 @Id
100 @GeneratedValue(generator = "generator")
101 @Column(name = "COD_SATB", nullable = false)
102 public Long getCodSatb() {
103 return this.codSatb;
104 }
105
106 public void setCodSatb(Long codSatb) {
107 this.codSatb = codSatb;
108 }
109
110 @Temporal(TemporalType.TIMESTAMP)
111 @Column(name = "DATA_INCLUSAO_SATB", length = 8)
112 public Date getDataInclusaoSatb() {
113 return this.dataInclusaoSatb;
114 }
115
116 public void setDataInclusaoSatb(Date dataInclusaoSatb) {
117 this.dataInclusaoSatb = dataInclusaoSatb;
118 }
119
120 @Column(name = "IND_ATIVO_SATB", length = 1)
121 public String getIndAtivoSatb() {
122 return this.indAtivoSatb;
123 }
124
125 public void setIndAtivoSatb(String indAtivoSatb) {
126 this.indAtivoSatb = indAtivoSatb;
127 }
128
129 @Column(name = "DESCRICAO_SATB", length = 100)
130 public String getDescricaoSatb() {
131 return this.descricaoSatb;
132 }
133
134 public void setDescricaoSatb(String descricaoSatb) {
135 this.descricaoSatb = descricaoSatb;
136 }
137
138 @Column(name = "ATRIB_INF_COMP_SATB", length = 2000)
139 public String getAtribInfCompSatb() {
140 return this.atribInfCompSatb;
141 }
142
143 public void setAtribInfCompSatb(String atribInfCompSatb) {
144 this.atribInfCompSatb = atribInfCompSatb;
145 }
146
147 @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "sisAtributoSatb")
148 public Set<UsuarioAtributoUsua> getUsuarioAtributoUsuas() {
149 return this.usuarioAtributoUsuas;
150 }
151
152 public void setUsuarioAtributoUsuas(Set<UsuarioAtributoUsua> usuarioAtributoUsuas) {
153 this.usuarioAtributoUsuas = usuarioAtributoUsuas;
154 }
155
156 @ManyToMany(fetch = FetchType.LAZY)
157 @JoinTable(name = "TB_SEGMENTO_TP_ACESSO_SGTTA", joinColumns = { @JoinColumn(name = "COD_SATB", nullable = false, updatable = false) }, inverseJoinColumns = { @JoinColumn(name = "COD_SGT", nullable = false, updatable = false) })
158 @Cascade( { org.hibernate.annotations.CascadeType.SAVE_UPDATE })
159 public Set<SegmentoSgt> getSegmentoTpAcessoSgttas() {
160 return this.segmentoTpAcessoSgttas;
161 }
162
163 public void setSegmentoTpAcessoSgttas(Set<SegmentoSgt> segmentoTpAcessoSgttas) {
164 this.segmentoTpAcessoSgttas = segmentoTpAcessoSgttas;
165 }
166
167 @ManyToMany(fetch = FetchType.LAZY)
168 @JoinTable(name = "TB_ITEM_ESTRUTURA_NIVEL_IETTN", joinColumns = { @JoinColumn(name = "COD_ATB", nullable = false, updatable = false) }, inverseJoinColumns = { @JoinColumn(name = "COD_IETT", nullable = false, updatable = false) })
169 @Cascade( { org.hibernate.annotations.CascadeType.SAVE_UPDATE })
170 public Set<ItemEstruturaIett> getItemEstruturaNivelIettns() {
171 return this.itemEstruturaNivelIettns;
172 }
173
174 public void setItemEstruturaNivelIettns(Set<ItemEstruturaIett> itemEstruturaNivelIettns) {
175 this.itemEstruturaNivelIettns = itemEstruturaNivelIettns;
176 }
177
178 @OneToMany(fetch = FetchType.LAZY, mappedBy = "sisAtributoSatb")
179 public Set<ItemEstrutUsuarioIettus> getItemEstrutUsuarioIettuses() {
180 return this.itemEstrutUsuarioIettuses;
181 }
182
183 public void setItemEstrutUsuarioIettuses(Set<ItemEstrutUsuarioIettus> itemEstrutUsuarioIettuses) {
184 this.itemEstrutUsuarioIettuses = itemEstrutUsuarioIettuses;
185 }
186
187 @OneToMany(fetch = FetchType.LAZY, mappedBy = "sisAtributoTipo")
188 public Set<PontoCriticoPtc> getPontoCriticoPtcs() {
189 return this.pontoCriticoPtcs;
190 }
191
192 public void setPontoCriticoPtcs(Set<PontoCriticoPtc> pontoCriticoPtcs) {
193 this.pontoCriticoPtcs = pontoCriticoPtcs;
194 }
195
196 @ManyToMany(fetch = FetchType.LAZY)
197 @JoinTable(name = "TB_SEGMENTO_ITEM_TPACES_SGTITA", joinColumns = { @JoinColumn(name = "COD_SATB", nullable = false, updatable = false) }, inverseJoinColumns = { @JoinColumn(name = "COD_SGTI", nullable = false, updatable = false) })
198 @Cascade( { org.hibernate.annotations.CascadeType.SAVE_UPDATE })
199 public Set<SegmentoItemSgti> getSegmentoItemTpacesSgtitas() {
200 return this.segmentoItemTpacesSgtitas;
201 }
202
203 public void setSegmentoItemTpacesSgtitas(Set<SegmentoItemSgti> segmentoItemTpacesSgtitas) {
204 this.segmentoItemTpacesSgtitas = segmentoItemTpacesSgtitas;
205 }
206
207 @ManyToMany(fetch = FetchType.LAZY)
208 @JoinTable(name = "tb_tipo_acomp_satb_tasatb", joinColumns = { @JoinColumn(name = "COD_SATB", nullable = false, updatable = false) }, inverseJoinColumns = { @JoinColumn(name = "COD_TA", nullable = false, updatable = false) })
209 @Cascade( { org.hibernate.annotations.CascadeType.SAVE_UPDATE })
210 public Set<TipoAcompanhamentoTa> getTipoAcompanhamentoTas() {
211 return this.tipoAcompanhamentoTas;
212 }
213
214 public void setTipoAcompanhamentoTas(Set<TipoAcompanhamentoTa> tipoAcompanhamentoTas) {
215 this.tipoAcompanhamentoTas = tipoAcompanhamentoTas;
216 }
217
218 @ManyToMany(fetch = FetchType.LAZY)
219 @JoinTable(name = "TB_SEGMENTO_CATEG_TP_ACESS_SGT", joinColumns = { @JoinColumn(name = "COD_SATB", nullable = false, updatable = false) }, inverseJoinColumns = { @JoinColumn(name = "COD_SGTC", nullable = false, updatable = false) })
220 @Cascade( { org.hibernate.annotations.CascadeType.SAVE_UPDATE })
221 public Set<SegmentoCategoriaSgtc> getSegmentoCategTpAcessSgts() {
222 return this.segmentoCategTpAcessSgts;
223 }
224
225 public void setSegmentoCategTpAcessSgts(Set<SegmentoCategoriaSgtc> segmentoCategTpAcessSgts) {
226 this.segmentoCategTpAcessSgts = segmentoCategTpAcessSgts;
227 }
228
229 @ManyToMany(fetch = FetchType.LAZY)
230 @JoinTable(name = "TB_SEGMENTO_SIS_ATRIB_SGTSA", joinColumns = { @JoinColumn(name = "COD_SATB", nullable = false, updatable = false) }, inverseJoinColumns = { @JoinColumn(name = "COD_SEGI", nullable = false, updatable = false) })
231 @Cascade( { org.hibernate.annotations.CascadeType.SAVE_UPDATE })
232 public Set<SegmentoItemSgti> getSegmentoSisAtribSgtsas() {
233 return this.segmentoSisAtribSgtsas;
234 }
235
236 public void setSegmentoSisAtribSgtsas(Set<SegmentoItemSgti> segmentoSisAtribSgtsas) {
237 this.segmentoSisAtribSgtsas = segmentoSisAtribSgtsas;
238 }
239
240 @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "sisAtributoSatb")
241 public Set<EstruturaAcessoEtta> getEstruturaAcessoEttas() {
242 return this.estruturaAcessoEttas;
243 }
244
245 public void setEstruturaAcessoEttas(Set<EstruturaAcessoEtta> estruturaAcessoEttas) {
246 this.estruturaAcessoEttas = estruturaAcessoEttas;
247 }
248
249 @OneToMany(fetch = FetchType.LAZY, mappedBy = "sisAtributoSatbByCodSacapa")
250 public Set<ConfiguracaoCfg> getConfiguracaoCfgsByCodSacapa() {
251 return this.configuracaoCfgsByCodSacapa;
252 }
253
254 public void setConfiguracaoCfgsByCodSacapa(Set<ConfiguracaoCfg> configuracaoCfgsByCodSacapa) {
255 this.configuracaoCfgsByCodSacapa = configuracaoCfgsByCodSacapa;
256 }
257
258 @OneToMany(fetch = FetchType.LAZY, mappedBy = "sisAtributoSatbByCodSapadrao")
259 public Set<ConfiguracaoCfg> getConfiguracaoCfgsByCodSapadrao() {
260 return this.configuracaoCfgsByCodSapadrao;
261 }
262
263 public void setConfiguracaoCfgsByCodSapadrao(Set<ConfiguracaoCfg> configuracaoCfgsByCodSapadrao) {
264 this.configuracaoCfgsByCodSapadrao = configuracaoCfgsByCodSapadrao;
265 }
266
267 @ManyToOne(fetch = FetchType.LAZY)
268 @JoinColumn(name = "COD_SGA")
269 public SisGrupoAtributoSga getSisGrupoAtributoSga() {
270 return this.sisGrupoAtributoSga;
271 }
272
273 public void setSisGrupoAtributoSga(SisGrupoAtributoSga sisGrupoAtributoSga) {
274 this.sisGrupoAtributoSga = sisGrupoAtributoSga;
275 }
276
277 @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "sisAtributoSatb")
278 public Set<LocAtributoLoca> getLocAtributoLocas() {
279 return this.locAtributoLocas;
280 }
281
282 public void setLocAtributoLocas(Set<LocAtributoLoca> locAtributoLocas) {
283 this.locAtributoLocas = locAtributoLocas;
284 }
285
286 @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "sisAtributoSatb")
287 public Set<EntidadeAtributoEnta> getEntidadeAtributoEntas() {
288 return this.entidadeAtributoEntas;
289 }
290
291 public void setEntidadeAtributoEntas(Set<EntidadeAtributoEnta> entidadeAtributoEntas) {
292 this.entidadeAtributoEntas = entidadeAtributoEntas;
293 }
294
295 @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "sisAtributoSatb")
296 public Set<DemAtributoDema> getDemAtributoDemas() {
297 return this.demAtributoDemas;
298 }
299
300 public void setDemAtributoDemas(Set<DemAtributoDema> demAtributoDemas) {
301 this.demAtributoDemas = demAtributoDemas;
302 }
303
304 @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "sisAtributoSatb")
305 public Set<ItemEstrtIndResulIettr> getItemEstrtIndResulIettrs() {
306 return this.itemEstrtIndResulIettrs;
307 }
308
309 public void setItemEstrtIndResulIettrs(Set<ItemEstrtIndResulIettr> itemEstrtIndResulIettrs) {
310 this.itemEstrtIndResulIettrs = itemEstrtIndResulIettrs;
311 }
312
313 @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "tipoEventoSatb")
314 public Set<AgendaAge> getAgendaAges() {
315 return this.agendaAges;
316 }
317
318 public void setAgendaAges(Set<AgendaAge> agendaAges) {
319 this.agendaAges = agendaAges;
320 }
321
322 @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "sisAtributoSatb")
323 public Set<ItemEstruturaSisAtributoIettSatb> getItemEstruturaSisAtributoIettSatbs() {
324 return this.itemEstruturaSisAtributoIettSatbs;
325 }
326
327 public void setItemEstruturaSisAtributoIettSatbs(Set<ItemEstruturaSisAtributoIettSatb> itemEstruturaSisAtributoIettSatbs) {
328 this.itemEstruturaSisAtributoIettSatbs = itemEstruturaSisAtributoIettSatbs;
329 }
330
331 @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "sisAtributoSatb")
332 public Set<HistoricoIettSatbH> getHistoricoIettSatbHs() {
333 return this.historicoIettSatbHs;
334 }
335
336 public void setHistoricoIettSatbHs(Set<HistoricoIettSatbH> historicoIettSatbHs) {
337 this.historicoIettSatbHs = historicoIettSatbHs;
338 }
339
340 @OneToMany(fetch = FetchType.LAZY, mappedBy = "sisAtributoSatb")
341 public Set<TipoAcompGrpAcesso> getTipoAcompGrpAcessos() {
342 return this.tipoAcompGrpAcessos;
343 }
344
345 public void setTipoAcompGrpAcessos(Set<TipoAcompGrpAcesso> tipoAcompGrpAcessos) {
346 this.tipoAcompGrpAcessos = tipoAcompGrpAcessos;
347 }
348
349 @OneToMany(fetch = FetchType.LAZY, mappedBy = "sisAtributoSatb")
350 public Set<TipoAcompTipofuncacompSisatributoTaTpfaSatb> getTipoacompTipofuncacompSisatributoTatpfasatbs() {
351 return this.tipoacompTipofuncacompSisatributoTatpfasatbs;
352 }
353
354 public void setTipoacompTipofuncacompSisatributoTatpfasatbs(Set<TipoAcompTipofuncacompSisatributoTaTpfaSatb> tipoacompTipofuncacompSisatributoTatpfasatbs) {
355 this.tipoacompTipofuncacompSisatributoTatpfasatbs = tipoacompTipofuncacompSisatributoTatpfasatbs;
356 }
357
358 @OneToMany(fetch = FetchType.LAZY, mappedBy = "sisAtributoSatb")
359 public Set<TipoAcompAbasSisatributoTaAbaSatb> getTipoacompAbasSisatributoTaabasatbs() {
360 return this.tipoacompAbasSisatributoTaabasatbs;
361 }
362
363 public void setTipoacompAbasSisatributoTaabasatbs(Set<TipoAcompAbasSisatributoTaAbaSatb> tipoacompAbasSisatributoTaabasatbs) {
364 this.tipoacompAbasSisatributoTaabasatbs = tipoacompAbasSisatributoTaabasatbs;
365 }
366
367 }