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.ManyToOne;
16 import javax.persistence.OneToMany;
17 import javax.persistence.Table;
18 import javax.persistence.Temporal;
19 import javax.persistence.TemporalType;
20 import org.hibernate.annotations.GenericGenerator;
21
22
23
24
25 @Entity
26 @Table(name = "TB_ITEM_ESTR_UPL_CATEG_IETTUC")
27 public class ItemEstrUplCategIettuc implements java.io.Serializable {
28
29 private Long codIettuc;
30 private String nomeIettuc;
31 private String indAtivoIettuc;
32 private Date dataInclusaoIettuc;
33 private String imagemIettuc;
34 private String descricaoIettuc;
35 private UploadTipoCategoriaUtc uploadTipoCategoriaUtc;
36 private Set<ItemEstrutUploadIettup> itemEstrutUploadIettups = new HashSet<ItemEstrutUploadIettup>(0);
37 private ItemEstruturaIett itemEstruturaIett;
38 private Set<HistoricoIettupH> historicoIettupHs = new HashSet<HistoricoIettupH>(0);
39 private AcompReferenciaItemAri acompReferenciaItemAri;
40
41 public ItemEstrUplCategIettuc() {
42 }
43
44 public ItemEstrUplCategIettuc(String nomeIettuc, String indAtivoIettuc, Date dataInclusaoIettuc, String imagemIettuc, String descricaoIettuc, UploadTipoCategoriaUtc uploadTipoCategoriaUtc, Set<ItemEstrutUploadIettup> itemEstrutUploadIettups, ItemEstruturaIett itemEstruturaIett, Set<HistoricoIettupH> historicoIettupHs, AcompReferenciaItemAri acompReferenciaItemAri) {
45 this.nomeIettuc = nomeIettuc;
46 this.indAtivoIettuc = indAtivoIettuc;
47 this.dataInclusaoIettuc = dataInclusaoIettuc;
48 this.imagemIettuc = imagemIettuc;
49 this.descricaoIettuc = descricaoIettuc;
50 this.uploadTipoCategoriaUtc = uploadTipoCategoriaUtc;
51 this.itemEstrutUploadIettups = itemEstrutUploadIettups;
52 this.itemEstruturaIett = itemEstruturaIett;
53 this.historicoIettupHs = historicoIettupHs;
54 this.acompReferenciaItemAri = acompReferenciaItemAri;
55 }
56
57 @GenericGenerator(name = "generator", strategy = "increment")
58 @Id
59 @GeneratedValue(generator = "generator")
60 @Column(name = "COD_IETTUC", nullable = false)
61 public Long getCodIettuc() {
62 return this.codIettuc;
63 }
64
65 public void setCodIettuc(Long codIettuc) {
66 this.codIettuc = codIettuc;
67 }
68
69 @Column(name = "NOME_IETTUC", length = 30)
70 public String getNomeIettuc() {
71 return this.nomeIettuc;
72 }
73
74 public void setNomeIettuc(String nomeIettuc) {
75 this.nomeIettuc = nomeIettuc;
76 }
77
78 @Column(name = "IND_ATIVO_IETTUC", length = 1)
79 public String getIndAtivoIettuc() {
80 return this.indAtivoIettuc;
81 }
82
83 public void setIndAtivoIettuc(String indAtivoIettuc) {
84 this.indAtivoIettuc = indAtivoIettuc;
85 }
86
87 @Temporal(TemporalType.TIMESTAMP)
88 @Column(name = "DATA_INCLUSAO_IETTUC", length = 7)
89 public Date getDataInclusaoIettuc() {
90 return this.dataInclusaoIettuc;
91 }
92
93 public void setDataInclusaoIettuc(Date dataInclusaoIettuc) {
94 this.dataInclusaoIettuc = dataInclusaoIettuc;
95 }
96
97 @Column(name = "IMAGEM_IETTUC", length = 100)
98 public String getImagemIettuc() {
99 return this.imagemIettuc;
100 }
101
102 public void setImagemIettuc(String imagemIettuc) {
103 this.imagemIettuc = imagemIettuc;
104 }
105
106 @Column(name = "DESCRICAO_IETTUC", length = 2000)
107 public String getDescricaoIettuc() {
108 return this.descricaoIettuc;
109 }
110
111 public void setDescricaoIettuc(String descricaoIettuc) {
112 this.descricaoIettuc = descricaoIettuc;
113 }
114
115 @ManyToOne(fetch = FetchType.LAZY)
116 @JoinColumn(name = "COD_UTC")
117 public UploadTipoCategoriaUtc getUploadTipoCategoriaUtc() {
118 return this.uploadTipoCategoriaUtc;
119 }
120
121 public void setUploadTipoCategoriaUtc(UploadTipoCategoriaUtc uploadTipoCategoriaUtc) {
122 this.uploadTipoCategoriaUtc = uploadTipoCategoriaUtc;
123 }
124
125 @OneToMany(cascade = CascadeType.REMOVE, fetch = FetchType.LAZY, mappedBy = "itemEstrUplCategIettuc")
126 public Set<ItemEstrutUploadIettup> getItemEstrutUploadIettups() {
127 return this.itemEstrutUploadIettups;
128 }
129
130 public void setItemEstrutUploadIettups(Set<ItemEstrutUploadIettup> itemEstrutUploadIettups) {
131 this.itemEstrutUploadIettups = itemEstrutUploadIettups;
132 }
133
134 @ManyToOne(fetch = FetchType.LAZY)
135 @JoinColumn(name = "COD_IETT")
136 public ItemEstruturaIett getItemEstruturaIett() {
137 return this.itemEstruturaIett;
138 }
139
140 public void setItemEstruturaIett(ItemEstruturaIett itemEstruturaIett) {
141 this.itemEstruturaIett = itemEstruturaIett;
142 }
143
144 @OneToMany(fetch = FetchType.LAZY, mappedBy = "itemEstrUplCategIettuc")
145 public Set<HistoricoIettupH> getHistoricoIettupHs() {
146 return this.historicoIettupHs;
147 }
148
149 public void setHistoricoIettupHs(Set<HistoricoIettupH> historicoIettupHs) {
150 this.historicoIettupHs = historicoIettupHs;
151 }
152
153 @ManyToOne(fetch = FetchType.LAZY)
154 @JoinColumn(name = "COD_ARI")
155 public AcompReferenciaItemAri getAcompReferenciaItemAri() {
156 return this.acompReferenciaItemAri;
157 }
158
159 public void setAcompReferenciaItemAri(AcompReferenciaItemAri acompReferenciaItemAri) {
160 this.acompReferenciaItemAri = acompReferenciaItemAri;
161 }
162
163 }