1 package ecar.pojo;
2
3
4
5 import java.util.Date;
6 import java.util.Date;
7
8 import javax.persistence.Column;
9 import javax.persistence.Entity;
10 import javax.persistence.FetchType;
11 import javax.persistence.GeneratedValue;
12 import javax.persistence.Id;
13 import javax.persistence.JoinColumn;
14 import javax.persistence.ManyToOne;
15 import javax.persistence.Table;
16 import javax.persistence.Temporal;
17 import javax.persistence.TemporalType;
18
19 import org.hibernate.annotations.GenericGenerator;
20
21
22
23
24 @Entity
25 @Table(name = "TB_HISTORICO_IETTUSH")
26 public class HistoricoIettusH implements java.io.Serializable {
27
28 private Long codIettusH;
29 private TipoFuncAcompTpfa tipoFuncAcompTpfa;
30 private UsuarioUsu usuarioUsu;
31 private ItemEstruturaIett itemEstruturaIett;
32 private Date dataInclusaoIettus;
33 private ItemEstruturaIett itemEstruturaIettOrigem;
34 private String codTpPermIettus;
35 private Long cod_atb;
36 private String indLeituraIettus;
37 private String indEdicaoIettus;
38 private String indExcluirIettus;
39 private String indAtivMonitIettus;
40 private String indDesatMonitIettus;
41 private String indBloqPlanIettus;
42 private String indDesblPlanIettus;
43 private String indInfAndamentoIettus;
44 private String indEmitePosIettus;
45 private String indProxNivelIettus;
46 private String indLeituraParecerIettus;
47 private UsuarioUsu usuManutencao;
48 private HistoricoMaster historicoMaster;
49
50 public HistoricoIettusH() {
51 }
52
53 public HistoricoIettusH(TipoFuncAcompTpfa tipoFuncAcompTpfa, UsuarioUsu usuarioUsu, ItemEstruturaIett itemEstruturaIett, Date dataInclusaoIettus, ItemEstruturaIett itemEstruturaIettOrigem, String codTpPermIettus, Long cod_atb, String indLeituraIettus, String indEdicaoIettus, String indExcluirIettus, String indAtivMonitIettus, String indDesatMonitIettus, String indBloqPlanIettus, String indDesblPlanIettus, String indInfAndamentoIettus, String indEmitePosIettus, String indProxNivelIettus, String indLeituraParecerIettus, UsuarioUsu usuManutencao, HistoricoMaster historicoMaster) {
54 this.tipoFuncAcompTpfa = tipoFuncAcompTpfa;
55 this.usuarioUsu = usuarioUsu;
56 this.itemEstruturaIett = itemEstruturaIett;
57 this.dataInclusaoIettus = dataInclusaoIettus;
58 this.itemEstruturaIettOrigem = itemEstruturaIettOrigem;
59 this.codTpPermIettus = codTpPermIettus;
60 this.cod_atb = cod_atb;
61 this.indLeituraIettus = indLeituraIettus;
62 this.indEdicaoIettus = indEdicaoIettus;
63 this.indExcluirIettus = indExcluirIettus;
64 this.indAtivMonitIettus = indAtivMonitIettus;
65 this.indDesatMonitIettus = indDesatMonitIettus;
66 this.indBloqPlanIettus = indBloqPlanIettus;
67 this.indDesblPlanIettus = indDesblPlanIettus;
68 this.indInfAndamentoIettus = indInfAndamentoIettus;
69 this.indEmitePosIettus = indEmitePosIettus;
70 this.indProxNivelIettus = indProxNivelIettus;
71 this.indLeituraParecerIettus = indLeituraParecerIettus;
72 this.usuManutencao = usuManutencao;
73 this.historicoMaster = historicoMaster;
74 }
75
76 @GenericGenerator(name = "generator", strategy = "increment")
77 @Id
78 @GeneratedValue(generator = "generator")
79 @Column(name = "COD_IETTUSH", nullable = false)
80 public Long getCodIettusH() {
81 return this.codIettusH;
82 }
83
84 public void setCodIettusH(Long codIettusH) {
85 this.codIettusH = codIettusH;
86 }
87
88 @ManyToOne(fetch = FetchType.LAZY)
89 @JoinColumn(name = "COD_TPFA")
90 public TipoFuncAcompTpfa getTipoFuncAcompTpfa() {
91 return this.tipoFuncAcompTpfa;
92 }
93
94 public void setTipoFuncAcompTpfa(TipoFuncAcompTpfa tipoFuncAcompTpfa) {
95 this.tipoFuncAcompTpfa = tipoFuncAcompTpfa;
96 }
97
98 @ManyToOne(fetch = FetchType.LAZY)
99 @JoinColumn(name = "COD_USU")
100 public UsuarioUsu getUsuarioUsu() {
101 return this.usuarioUsu;
102 }
103
104 public void setUsuarioUsu(UsuarioUsu usuarioUsu) {
105 this.usuarioUsu = usuarioUsu;
106 }
107
108 @ManyToOne(fetch = FetchType.LAZY)
109 @JoinColumn(name = "COD_IETT")
110 public ItemEstruturaIett getItemEstruturaIett() {
111 return this.itemEstruturaIett;
112 }
113
114 public void setItemEstruturaIett(ItemEstruturaIett itemEstruturaIett) {
115 this.itemEstruturaIett = itemEstruturaIett;
116 }
117
118 @Temporal(TemporalType.TIMESTAMP)
119 @Column(name = "DATA_INCLUSAO_IETTUS", length = 7)
120 public Date getDataInclusaoIettus() {
121 return this.dataInclusaoIettus;
122 }
123
124 public void setDataInclusaoIettus(Date dataInclusaoIettus) {
125 this.dataInclusaoIettus = dataInclusaoIettus;
126 }
127
128 @ManyToOne(fetch = FetchType.LAZY)
129 @JoinColumn(name = "COD_IETT_ORIG")
130 public ItemEstruturaIett getItemEstruturaIettOrigem() {
131 return this.itemEstruturaIettOrigem;
132 }
133
134 public void setItemEstruturaIettOrigem(ItemEstruturaIett itemEstruturaIettOrigem) {
135 this.itemEstruturaIettOrigem = itemEstruturaIettOrigem;
136 }
137
138 @Column(name = "COD_TP_PERM_IETTUS", length = 1)
139 public String getCodTpPermIettus() {
140 return this.codTpPermIettus;
141 }
142
143 public void setCodTpPermIettus(String codTpPermIettus) {
144 this.codTpPermIettus = codTpPermIettus;
145 }
146
147 @Column(name = "cod_atb")
148 public Long getCod_atb() {
149 return this.cod_atb;
150 }
151
152 public void setCod_atb(Long cod_atb) {
153 this.cod_atb = cod_atb;
154 }
155
156 @Column(name = "ind_leitura_iettus", length = 18)
157 public String getIndLeituraIettus() {
158 return this.indLeituraIettus;
159 }
160
161 public void setIndLeituraIettus(String indLeituraIettus) {
162 this.indLeituraIettus = indLeituraIettus;
163 }
164
165 @Column(name = "ind_edicao_iettus", length = 18)
166 public String getIndEdicaoIettus() {
167 return this.indEdicaoIettus;
168 }
169
170 public void setIndEdicaoIettus(String indEdicaoIettus) {
171 this.indEdicaoIettus = indEdicaoIettus;
172 }
173
174 @Column(name = "ind_excluir_iettus", length = 18)
175 public String getIndExcluirIettus() {
176 return this.indExcluirIettus;
177 }
178
179 public void setIndExcluirIettus(String indExcluirIettus) {
180 this.indExcluirIettus = indExcluirIettus;
181 }
182
183 @Column(name = "IND_ATIV_MONIT_IETTUS", length = 1)
184 public String getIndAtivMonitIettus() {
185 return this.indAtivMonitIettus;
186 }
187
188 public void setIndAtivMonitIettus(String indAtivMonitIettus) {
189 this.indAtivMonitIettus = indAtivMonitIettus;
190 }
191
192 @Column(name = "IND_DESAT_MONIT_IETTUS", length = 1)
193 public String getIndDesatMonitIettus() {
194 return this.indDesatMonitIettus;
195 }
196
197 public void setIndDesatMonitIettus(String indDesatMonitIettus) {
198 this.indDesatMonitIettus = indDesatMonitIettus;
199 }
200
201 @Column(name = "IND_BLOQ_PLAN_IETTUS", length = 1)
202 public String getIndBloqPlanIettus() {
203 return this.indBloqPlanIettus;
204 }
205
206 public void setIndBloqPlanIettus(String indBloqPlanIettus) {
207 this.indBloqPlanIettus = indBloqPlanIettus;
208 }
209
210 @Column(name = "IND_DESBL_PLAN_IETTUS", length = 1)
211 public String getIndDesblPlanIettus() {
212 return this.indDesblPlanIettus;
213 }
214
215 public void setIndDesblPlanIettus(String indDesblPlanIettus) {
216 this.indDesblPlanIettus = indDesblPlanIettus;
217 }
218
219 @Column(name = "IND_INF_ANDAMENTO_IETTUS", length = 1)
220 public String getIndInfAndamentoIettus() {
221 return this.indInfAndamentoIettus;
222 }
223
224 public void setIndInfAndamentoIettus(String indInfAndamentoIettus) {
225 this.indInfAndamentoIettus = indInfAndamentoIettus;
226 }
227
228 @Column(name = "IND_EMITE_POS_IETTUS", length = 1)
229 public String getIndEmitePosIettus() {
230 return this.indEmitePosIettus;
231 }
232
233 public void setIndEmitePosIettus(String indEmitePosIettus) {
234 this.indEmitePosIettus = indEmitePosIettus;
235 }
236
237 @Column(name = "IND_PROX_NIVEL_IETTUS", length = 1)
238 public String getIndProxNivelIettus() {
239 return this.indProxNivelIettus;
240 }
241
242 public void setIndProxNivelIettus(String indProxNivelIettus) {
243 this.indProxNivelIettus = indProxNivelIettus;
244 }
245
246 @Column(name = "IND_LEITURA_PARECER_IETTUS", length = 1)
247 public String getIndLeituraParecerIettus() {
248 return this.indLeituraParecerIettus;
249 }
250
251 public void setIndLeituraParecerIettus(String indLeituraParecerIettus) {
252 this.indLeituraParecerIettus = indLeituraParecerIettus;
253 }
254
255 @ManyToOne(fetch = FetchType.LAZY)
256 @JoinColumn(name = "COD_USU_MANUTENCAO")
257 public UsuarioUsu getUsuManutencao() {
258 return this.usuManutencao;
259 }
260
261 public void setUsuManutencao(UsuarioUsu usuManutencao) {
262 this.usuManutencao = usuManutencao;
263 }
264
265 @ManyToOne(fetch = FetchType.LAZY)
266 @JoinColumn(name = "COD_MAH")
267 public HistoricoMaster getHistoricoMaster() {
268 return this.historicoMaster;
269 }
270
271 public void setHistoricoMaster(HistoricoMaster historicoMaster) {
272 this.historicoMaster = historicoMaster;
273 }
274
275 }