1 package ecar.pojo;
2
3
4
5 import java.util.Date;
6 import javax.persistence.Column;
7 import javax.persistence.Entity;
8 import javax.persistence.FetchType;
9 import javax.persistence.GeneratedValue;
10 import javax.persistence.Id;
11 import javax.persistence.JoinColumn;
12 import javax.persistence.ManyToOne;
13 import javax.persistence.Table;
14 import javax.persistence.Temporal;
15 import javax.persistence.TemporalType;
16 import org.hibernate.annotations.GenericGenerator;
17
18
19
20
21 @Entity
22 @Table(name = "TB_HISTORICO_IETTUPH")
23 public class HistoricoIettupH implements java.io.Serializable {
24
25 private Long codIettupH;
26 private Long codIettup;
27 private Date dataInclusaoIettup;
28 private String indAtivoIettup;
29 private String nomeOriginalIettup;
30 private Long tamanhoIettup;
31 private String descricaoIettup;
32 private String arquivoIettup;
33 private ItemEstruturaIett itemEstruturaIett;
34 private ItemEstrUplCategIettuc itemEstrUplCategIettuc;
35 private UsuarioUsu usuarioUsu;
36 private UploadTipoArquivoUta uploadTipoArquivoUta;
37 private UsuarioUsu usuManutencao;
38 private String nomeIettuc;
39 private HistoricoMaster historicoMaster;
40
41 public HistoricoIettupH() {
42 }
43
44 public HistoricoIettupH(Long codIettup, Date dataInclusaoIettup, String indAtivoIettup, String nomeOriginalIettup, Long tamanhoIettup, String descricaoIettup, String arquivoIettup, ItemEstruturaIett itemEstruturaIett, ItemEstrUplCategIettuc itemEstrUplCategIettuc, UsuarioUsu usuarioUsu, UploadTipoArquivoUta uploadTipoArquivoUta, UsuarioUsu usuManutencao, String nomeIettuc, HistoricoMaster historicoMaster) {
45 this.codIettup = codIettup;
46 this.dataInclusaoIettup = dataInclusaoIettup;
47 this.indAtivoIettup = indAtivoIettup;
48 this.nomeOriginalIettup = nomeOriginalIettup;
49 this.tamanhoIettup = tamanhoIettup;
50 this.descricaoIettup = descricaoIettup;
51 this.arquivoIettup = arquivoIettup;
52 this.itemEstruturaIett = itemEstruturaIett;
53 this.itemEstrUplCategIettuc = itemEstrUplCategIettuc;
54 this.usuarioUsu = usuarioUsu;
55 this.uploadTipoArquivoUta = uploadTipoArquivoUta;
56 this.usuManutencao = usuManutencao;
57 this.nomeIettuc = nomeIettuc;
58 this.historicoMaster = historicoMaster;
59 }
60
61 @GenericGenerator(name = "generator", strategy = "increment")
62 @Id
63 @GeneratedValue(generator = "generator")
64 @Column(name = "COD_IETTUPH", nullable = false)
65 public Long getCodIettupH() {
66 return this.codIettupH;
67 }
68
69 public void setCodIettupH(Long codIettupH) {
70 this.codIettupH = codIettupH;
71 }
72
73 @Column(name = "COD_IETTUP")
74 public Long getCodIettup() {
75 return this.codIettup;
76 }
77
78 public void setCodIettup(Long codIettup) {
79 this.codIettup = codIettup;
80 }
81
82 @Temporal(TemporalType.TIMESTAMP)
83 @Column(name = "DATA_INCLUSAO_IETTUP", length = 7)
84 public Date getDataInclusaoIettup() {
85 return this.dataInclusaoIettup;
86 }
87
88 public void setDataInclusaoIettup(Date dataInclusaoIettup) {
89 this.dataInclusaoIettup = dataInclusaoIettup;
90 }
91
92 @Column(name = "IND_ATIVO_IETTUP", length = 1)
93 public String getIndAtivoIettup() {
94 return this.indAtivoIettup;
95 }
96
97 public void setIndAtivoIettup(String indAtivoIettup) {
98 this.indAtivoIettup = indAtivoIettup;
99 }
100
101 @Column(name = "NOME_ORIGINAL_IETTUP", length = 100)
102 public String getNomeOriginalIettup() {
103 return this.nomeOriginalIettup;
104 }
105
106 public void setNomeOriginalIettup(String nomeOriginalIettup) {
107 this.nomeOriginalIettup = nomeOriginalIettup;
108 }
109
110 @Column(name = "TAMANHO_IETTUP")
111 public Long getTamanhoIettup() {
112 return this.tamanhoIettup;
113 }
114
115 public void setTamanhoIettup(Long tamanhoIettup) {
116 this.tamanhoIettup = tamanhoIettup;
117 }
118
119 @Column(name = "DESCRICAO_IETTUP", length = 2000)
120 public String getDescricaoIettup() {
121 return this.descricaoIettup;
122 }
123
124 public void setDescricaoIettup(String descricaoIettup) {
125 this.descricaoIettup = descricaoIettup;
126 }
127
128 @Column(name = "ARQUIVO_IETTUP", length = 100)
129 public String getArquivoIettup() {
130 return this.arquivoIettup;
131 }
132
133 public void setArquivoIettup(String arquivoIettup) {
134 this.arquivoIettup = arquivoIettup;
135 }
136
137 @ManyToOne(fetch = FetchType.LAZY)
138 @JoinColumn(name = "COD_IETT")
139 public ItemEstruturaIett getItemEstruturaIett() {
140 return this.itemEstruturaIett;
141 }
142
143 public void setItemEstruturaIett(ItemEstruturaIett itemEstruturaIett) {
144 this.itemEstruturaIett = itemEstruturaIett;
145 }
146
147 @ManyToOne(fetch = FetchType.LAZY)
148 @JoinColumn(name = "COD_IETTUC")
149 public ItemEstrUplCategIettuc getItemEstrUplCategIettuc() {
150 return this.itemEstrUplCategIettuc;
151 }
152
153 public void setItemEstrUplCategIettuc(ItemEstrUplCategIettuc itemEstrUplCategIettuc) {
154 this.itemEstrUplCategIettuc = itemEstrUplCategIettuc;
155 }
156
157 @ManyToOne(fetch = FetchType.LAZY)
158 @JoinColumn(name = "COD_USU")
159 public UsuarioUsu getUsuarioUsu() {
160 return this.usuarioUsu;
161 }
162
163 public void setUsuarioUsu(UsuarioUsu usuarioUsu) {
164 this.usuarioUsu = usuarioUsu;
165 }
166
167 @ManyToOne(fetch = FetchType.LAZY)
168 @JoinColumn(name = "COD_UTA")
169 public UploadTipoArquivoUta getUploadTipoArquivoUta() {
170 return this.uploadTipoArquivoUta;
171 }
172
173 public void setUploadTipoArquivoUta(UploadTipoArquivoUta uploadTipoArquivoUta) {
174 this.uploadTipoArquivoUta = uploadTipoArquivoUta;
175 }
176
177 @ManyToOne(fetch = FetchType.LAZY)
178 @JoinColumn(name = "COD_USU_MANUTENCAO")
179 public UsuarioUsu getUsuManutencao() {
180 return this.usuManutencao;
181 }
182
183 public void setUsuManutencao(UsuarioUsu usuManutencao) {
184 this.usuManutencao = usuManutencao;
185 }
186
187 @Column(name = "NOME_IETTUC")
188 public String getNomeIettuc() {
189 return this.nomeIettuc;
190 }
191
192 public void setNomeIettuc(String nomeIettuc) {
193 this.nomeIettuc = nomeIettuc;
194 }
195
196 @ManyToOne(fetch = FetchType.LAZY)
197 @JoinColumn(name = "COD_MAH")
198 public HistoricoMaster getHistoricoMaster() {
199 return this.historicoMaster;
200 }
201
202 public void setHistoricoMaster(HistoricoMaster historicoMaster) {
203 this.historicoMaster = historicoMaster;
204 }
205
206 }