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_IETTAH")
23 public class HistoricoIettaH implements java.io.Serializable {
24
25 private Long codIettaH;
26 private String indAtivoIetta;
27 private Date dataInclusaoIetta;
28 private Date dataIetta;
29 private String descricaoIetta;
30 private ItemEstruturaIett itemEstruturaIett;
31 private ItemEstrutAcaoIetta itemEstrutAcaoIetta;
32 private UsuarioUsu usuarioUsu;
33 private UsuarioUsu usuManutencao;
34 private HistoricoMaster historicoMaster;
35
36 public HistoricoIettaH() {
37 }
38
39 public HistoricoIettaH(String indAtivoIetta, Date dataInclusaoIetta, Date dataIetta, String descricaoIetta, ItemEstruturaIett itemEstruturaIett, ItemEstrutAcaoIetta itemEstrutAcaoIetta, UsuarioUsu usuarioUsu, UsuarioUsu usuManutencao, HistoricoMaster historicoMaster) {
40 this.indAtivoIetta = indAtivoIetta;
41 this.dataInclusaoIetta = dataInclusaoIetta;
42 this.dataIetta = dataIetta;
43 this.descricaoIetta = descricaoIetta;
44 this.itemEstruturaIett = itemEstruturaIett;
45 this.itemEstrutAcaoIetta = itemEstrutAcaoIetta;
46 this.usuarioUsu = usuarioUsu;
47 this.usuManutencao = usuManutencao;
48 this.historicoMaster = historicoMaster;
49 }
50
51 @GenericGenerator(name = "generator", strategy = "increment")
52 @Id
53 @GeneratedValue(generator = "generator")
54 @Column(name = "COD_IETTAH", nullable = false)
55 public Long getCodIettaH() {
56 return this.codIettaH;
57 }
58
59 public void setCodIettaH(Long codIettaH) {
60 this.codIettaH = codIettaH;
61 }
62
63 @Column(name = "IND_ATIVO_IETTA", length = 1)
64 public String getIndAtivoIetta() {
65 return this.indAtivoIetta;
66 }
67
68 public void setIndAtivoIetta(String indAtivoIetta) {
69 this.indAtivoIetta = indAtivoIetta;
70 }
71
72 @Temporal(TemporalType.TIMESTAMP)
73 @Column(name = "DATA_INCLUSAO_IETTA", length = 7)
74 public Date getDataInclusaoIetta() {
75 return this.dataInclusaoIetta;
76 }
77
78 public void setDataInclusaoIetta(Date dataInclusaoIetta) {
79 this.dataInclusaoIetta = dataInclusaoIetta;
80 }
81
82 @Temporal(TemporalType.TIMESTAMP)
83 @Column(name = "DATA_IETTA", length = 7)
84 public Date getDataIetta() {
85 return this.dataIetta;
86 }
87
88 public void setDataIetta(Date dataIetta) {
89 this.dataIetta = dataIetta;
90 }
91
92 @Column(name = "DESCRICAO_IETTA", length = 2000)
93 public String getDescricaoIetta() {
94 return this.descricaoIetta;
95 }
96
97 public void setDescricaoIetta(String descricaoIetta) {
98 this.descricaoIetta = descricaoIetta;
99 }
100
101 @ManyToOne(fetch = FetchType.LAZY)
102 @JoinColumn(name = "COD_IETT")
103 public ItemEstruturaIett getItemEstruturaIett() {
104 return this.itemEstruturaIett;
105 }
106
107 public void setItemEstruturaIett(ItemEstruturaIett itemEstruturaIett) {
108 this.itemEstruturaIett = itemEstruturaIett;
109 }
110
111 @ManyToOne(fetch = FetchType.LAZY)
112 @JoinColumn(name = "COD_IETTA")
113 public ItemEstrutAcaoIetta getItemEstrutAcaoIetta() {
114 return this.itemEstrutAcaoIetta;
115 }
116
117 public void setItemEstrutAcaoIetta(ItemEstrutAcaoIetta itemEstrutAcaoIetta) {
118 this.itemEstrutAcaoIetta = itemEstrutAcaoIetta;
119 }
120
121 @ManyToOne(fetch = FetchType.LAZY)
122 @JoinColumn(name = "COD_USU")
123 public UsuarioUsu getUsuarioUsu() {
124 return this.usuarioUsu;
125 }
126
127 public void setUsuarioUsu(UsuarioUsu usuarioUsu) {
128 this.usuarioUsu = usuarioUsu;
129 }
130
131 @ManyToOne(fetch = FetchType.LAZY)
132 @JoinColumn(name = "COD_USU_MANUTENCAO")
133 public UsuarioUsu getUsuManutencao() {
134 return this.usuManutencao;
135 }
136
137 public void setUsuManutencao(UsuarioUsu usuManutencao) {
138 this.usuManutencao = usuManutencao;
139 }
140
141 @ManyToOne(fetch = FetchType.LAZY)
142 @JoinColumn(name = "COD_MAH")
143 public HistoricoMaster getHistoricoMaster() {
144 return this.historicoMaster;
145 }
146
147 public void setHistoricoMaster(HistoricoMaster historicoMaster) {
148 this.historicoMaster = historicoMaster;
149 }
150
151 }