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 org.hibernate.annotations.GenericGenerator;
15
16
17
18
19 @Entity
20 @Table(name = "TB_HISTORICO_IETTLH")
21 public class HistoricoIettlH implements java.io.Serializable {
22
23 private Long codIettLH;
24 private ItemEstruturaIett itemEstruturaIett;
25 private LocalItemLit localItemLit;
26 private Date dataInclusaoIettl;
27 private UsuarioUsu usuManutencao;
28 private HistoricoMaster historicoMaster;
29
30 public HistoricoIettlH() {
31 }
32
33 public HistoricoIettlH(ItemEstruturaIett itemEstruturaIett, LocalItemLit localItemLit, Date dataInclusaoIettl, UsuarioUsu usuManutencao, HistoricoMaster historicoMaster) {
34 this.itemEstruturaIett = itemEstruturaIett;
35 this.localItemLit = localItemLit;
36 this.dataInclusaoIettl = dataInclusaoIettl;
37 this.usuManutencao = usuManutencao;
38 this.historicoMaster = historicoMaster;
39 }
40
41 @GenericGenerator(name = "generator", strategy = "increment")
42 @Id
43 @GeneratedValue(generator = "generator")
44 @Column(name = "COD_IETTLH", nullable = false)
45 public Long getCodIettLH() {
46 return this.codIettLH;
47 }
48
49 public void setCodIettLH(Long codIettLH) {
50 this.codIettLH = codIettLH;
51 }
52
53 @ManyToOne(fetch = FetchType.LAZY)
54 @JoinColumn(name = "COD_IETT")
55 public ItemEstruturaIett getItemEstruturaIett() {
56 return this.itemEstruturaIett;
57 }
58
59 public void setItemEstruturaIett(ItemEstruturaIett itemEstruturaIett) {
60 this.itemEstruturaIett = itemEstruturaIett;
61 }
62
63 @ManyToOne(fetch = FetchType.LAZY)
64 @JoinColumn(name = "cod_lit")
65 public LocalItemLit getLocalItemLit() {
66 return this.localItemLit;
67 }
68
69 public void setLocalItemLit(LocalItemLit localItemLit) {
70 this.localItemLit = localItemLit;
71 }
72
73 @Column(name = "DATA_INCLUSAO_IETTL")
74 public Date getDataInclusaoIettl() {
75 return this.dataInclusaoIettl;
76 }
77
78 public void setDataInclusaoIettl(Date dataInclusaoIettl) {
79 this.dataInclusaoIettl = dataInclusaoIettl;
80 }
81
82 @ManyToOne(fetch = FetchType.LAZY)
83 @JoinColumn(name = "COD_USU_MANUTENCAO")
84 public UsuarioUsu getUsuManutencao() {
85 return this.usuManutencao;
86 }
87
88 public void setUsuManutencao(UsuarioUsu usuManutencao) {
89 this.usuManutencao = usuManutencao;
90 }
91
92 @ManyToOne(fetch = FetchType.LAZY)
93 @JoinColumn(name = "COD_MAH")
94 public HistoricoMaster getHistoricoMaster() {
95 return this.historicoMaster;
96 }
97
98 public void setHistoricoMaster(HistoricoMaster historicoMaster) {
99 this.historicoMaster = historicoMaster;
100 }
101
102 }