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.Column;
9 import javax.persistence.Entity;
10 import javax.persistence.FetchType;
11 import javax.persistence.GeneratedValue;
12 import static javax.persistence.GenerationType.SEQUENCE;
13 import javax.persistence.Id;
14 import javax.persistence.JoinColumn;
15 import javax.persistence.ManyToOne;
16 import javax.persistence.OneToMany;
17 import javax.persistence.SequenceGenerator;
18 import javax.persistence.Table;
19
20
21
22
23 @Entity
24 @Table(name = "tb_historico_master_mah")
25 public class HistoricoMaster implements java.io.Serializable {
26
27 private static final long serialVersionUID = -5951580037227635963L;
28
29 private Long codMah;
30 private UsuarioUsu usuManutencao;
31 private Date dataHoraHistorico;
32 private HistoricoMotivo historicoMotivo;
33 private Long codReferenciaGeral;
34 private Set<HistoricoIettH> historicoIettHs = new HashSet<HistoricoIettH>(0);
35 private Set<HistoricoIettaH> historicoIettaHs = new HashSet<HistoricoIettaH>(0);
36 private Set<HistoricoIettbH> historicoIettbHs = new HashSet<HistoricoIettbH>(0);
37 private Set<HistoricoIettcH> historicoIettcHs = new HashSet<HistoricoIettcH>(0);
38 private Set<HistoricoIetteH> historicoIetteHs = new HashSet<HistoricoIetteH>(0);
39 private Set<HistoricoIettfH> historicoIettfHs = new HashSet<HistoricoIettfH>(0);
40 private Set<HistoricoIettlH> historicoIettlHs = new HashSet<HistoricoIettlH>(0);
41 private Set<HistoricoIettrH> historicoIettrHs = new HashSet<HistoricoIettrH>(0);
42 private Set<HistoricoIettupH> historicoIettupHs = new HashSet<HistoricoIettupH>(0);
43 private Set<HistoricoIettusH> historicoIettusHs = new HashSet<HistoricoIettusH>(0);
44 private Set<HistoricoIettutfaH> historicoIettutfaHs = new HashSet<HistoricoIettutfaH>(0);
45 private Set<HistoricoEfiecH> historicoEfiecHs = new HashSet<HistoricoEfiecH>(0);
46 private Set<HistoricoEfieftH> historicoEfieftHs = new HashSet<HistoricoEfieftH>(0);
47 private Set<HistoricoEfiepH> historicoEfiepHs = new HashSet<HistoricoEfiepH>(0);
48 private Set<HistoricoEfierH> historicoEfierHs = new HashSet<HistoricoEfierH>(0);
49 private Set<HistoricoIettSatbH> historicoIettSatbHs = new HashSet<HistoricoIettSatbH>(0);
50
51 public HistoricoMaster() {
52 }
53
54 public HistoricoMaster(UsuarioUsu usuManutencao, Date dataHoraHistorico, HistoricoMotivo historicoMotivo, Long codReferenciaGeral, Set<HistoricoIettH> historicoIettHs, Set<HistoricoIettaH> historicoIettaHs, Set<HistoricoIettbH> historicoIettbHs, Set<HistoricoIettcH> historicoIettcHs, Set<HistoricoIetteH> historicoIetteHs, Set<HistoricoIettfH> historicoIettfHs, Set<HistoricoIettlH> historicoIettlHs, Set<HistoricoIettrH> historicoIettrHs, Set<HistoricoIettupH> historicoIettupHs, Set<HistoricoIettusH> historicoIettusHs, Set<HistoricoIettutfaH> historicoIettutfaHs, Set<HistoricoEfiecH> historicoEfiecHs, Set<HistoricoEfieftH> historicoEfieftHs, Set<HistoricoEfiepH> historicoEfiepHs, Set<HistoricoEfierH> historicoEfierHs, Set<HistoricoIettSatbH> historicoIettSatbHs) {
55 this.usuManutencao = usuManutencao;
56 this.dataHoraHistorico = dataHoraHistorico;
57 this.historicoMotivo = historicoMotivo;
58 this.codReferenciaGeral = codReferenciaGeral;
59 this.historicoIettHs = historicoIettHs;
60 this.historicoIettaHs = historicoIettaHs;
61 this.historicoIettbHs = historicoIettbHs;
62 this.historicoIettcHs = historicoIettcHs;
63 this.historicoIetteHs = historicoIetteHs;
64 this.historicoIettfHs = historicoIettfHs;
65 this.historicoIettlHs = historicoIettlHs;
66 this.historicoIettrHs = historicoIettrHs;
67 this.historicoIettupHs = historicoIettupHs;
68 this.historicoIettusHs = historicoIettusHs;
69 this.historicoIettutfaHs = historicoIettutfaHs;
70 this.historicoEfiecHs = historicoEfiecHs;
71 this.historicoEfieftHs = historicoEfieftHs;
72 this.historicoEfiepHs = historicoEfiepHs;
73 this.historicoEfierHs = historicoEfierHs;
74 this.historicoIettSatbHs = historicoIettSatbHs;
75 }
76
77 @SequenceGenerator(name = "generator", sequenceName = "sequence_tb_historico_master_cod_mah")
78 @Id
79 @GeneratedValue(strategy = SEQUENCE, generator = "generator")
80 @Column(name = "cod_mah", nullable = false)
81 public Long getCodMah() {
82 return this.codMah;
83 }
84
85 public void setCodMah(Long codMah) {
86 this.codMah = codMah;
87 }
88
89 @ManyToOne(fetch = FetchType.LAZY)
90 @JoinColumn(name = "COD_USU_MANUTENCAO")
91 public UsuarioUsu getUsuManutencao() {
92 return this.usuManutencao;
93 }
94
95 public void setUsuManutencao(UsuarioUsu usuManutencao) {
96 this.usuManutencao = usuManutencao;
97 }
98
99 @Column(name = "data_hora_historico")
100 public Date getDataHoraHistorico() {
101 return this.dataHoraHistorico;
102 }
103
104 public void setDataHoraHistorico(Date dataHoraHistorico) {
105 this.dataHoraHistorico = dataHoraHistorico;
106 }
107
108 @ManyToOne(fetch = FetchType.LAZY)
109 @JoinColumn(name = "cod_moh")
110 public HistoricoMotivo getHistoricoMotivo() {
111 return this.historicoMotivo;
112 }
113
114 public void setHistoricoMotivo(HistoricoMotivo historicoMotivo) {
115 this.historicoMotivo = historicoMotivo;
116 }
117
118 @Column(name = "cod_referencia_geral")
119 public Long getCodReferenciaGeral() {
120 return this.codReferenciaGeral;
121 }
122
123 public void setCodReferenciaGeral(Long codReferenciaGeral) {
124 this.codReferenciaGeral = codReferenciaGeral;
125 }
126
127 @OneToMany(fetch = FetchType.LAZY, mappedBy = "historicoMaster")
128 public Set<HistoricoIettH> getHistoricoIettHs() {
129 return this.historicoIettHs;
130 }
131
132 public void setHistoricoIettHs(Set<HistoricoIettH> historicoIettHs) {
133 this.historicoIettHs = historicoIettHs;
134 }
135
136 @OneToMany(fetch = FetchType.LAZY, mappedBy = "historicoMaster")
137 public Set<HistoricoIettaH> getHistoricoIettaHs() {
138 return this.historicoIettaHs;
139 }
140
141 public void setHistoricoIettaHs(Set<HistoricoIettaH> historicoIettaHs) {
142 this.historicoIettaHs = historicoIettaHs;
143 }
144
145 @OneToMany(fetch = FetchType.LAZY, mappedBy = "historicoMaster")
146 public Set<HistoricoIettbH> getHistoricoIettbHs() {
147 return this.historicoIettbHs;
148 }
149
150 public void setHistoricoIettbHs(Set<HistoricoIettbH> historicoIettbHs) {
151 this.historicoIettbHs = historicoIettbHs;
152 }
153
154 @OneToMany(fetch = FetchType.LAZY, mappedBy = "historicoMaster")
155 public Set<HistoricoIettcH> getHistoricoIettcHs() {
156 return this.historicoIettcHs;
157 }
158
159 public void setHistoricoIettcHs(Set<HistoricoIettcH> historicoIettcHs) {
160 this.historicoIettcHs = historicoIettcHs;
161 }
162
163 @OneToMany(fetch = FetchType.LAZY, mappedBy = "historicoMaster")
164 public Set<HistoricoIetteH> getHistoricoIetteHs() {
165 return this.historicoIetteHs;
166 }
167
168 public void setHistoricoIetteHs(Set<HistoricoIetteH> historicoIetteHs) {
169 this.historicoIetteHs = historicoIetteHs;
170 }
171
172 @OneToMany(fetch = FetchType.LAZY, mappedBy = "historicoMaster")
173 public Set<HistoricoIettfH> getHistoricoIettfHs() {
174 return this.historicoIettfHs;
175 }
176
177 public void setHistoricoIettfHs(Set<HistoricoIettfH> historicoIettfHs) {
178 this.historicoIettfHs = historicoIettfHs;
179 }
180
181 @OneToMany(fetch = FetchType.LAZY, mappedBy = "historicoMaster")
182 public Set<HistoricoIettlH> getHistoricoIettlHs() {
183 return this.historicoIettlHs;
184 }
185
186 public void setHistoricoIettlHs(Set<HistoricoIettlH> historicoIettlHs) {
187 this.historicoIettlHs = historicoIettlHs;
188 }
189
190 @OneToMany(fetch = FetchType.LAZY, mappedBy = "historicoMaster")
191 public Set<HistoricoIettrH> getHistoricoIettrHs() {
192 return this.historicoIettrHs;
193 }
194
195 public void setHistoricoIettrHs(Set<HistoricoIettrH> historicoIettrHs) {
196 this.historicoIettrHs = historicoIettrHs;
197 }
198
199 @OneToMany(fetch = FetchType.LAZY, mappedBy = "historicoMaster")
200 public Set<HistoricoIettupH> getHistoricoIettupHs() {
201 return this.historicoIettupHs;
202 }
203
204 public void setHistoricoIettupHs(Set<HistoricoIettupH> historicoIettupHs) {
205 this.historicoIettupHs = historicoIettupHs;
206 }
207
208 @OneToMany(fetch = FetchType.LAZY, mappedBy = "historicoMaster")
209 public Set<HistoricoIettusH> getHistoricoIettusHs() {
210 return this.historicoIettusHs;
211 }
212
213 public void setHistoricoIettusHs(Set<HistoricoIettusH> historicoIettusHs) {
214 this.historicoIettusHs = historicoIettusHs;
215 }
216
217 @OneToMany(fetch = FetchType.LAZY, mappedBy = "historicoMaster")
218 public Set<HistoricoIettutfaH> getHistoricoIettutfaHs() {
219 return this.historicoIettutfaHs;
220 }
221
222 public void setHistoricoIettutfaHs(Set<HistoricoIettutfaH> historicoIettutfaHs) {
223 this.historicoIettutfaHs = historicoIettutfaHs;
224 }
225
226 @OneToMany(fetch = FetchType.LAZY, mappedBy = "historicoMaster")
227 public Set<HistoricoEfiecH> getHistoricoEfiecHs() {
228 return this.historicoEfiecHs;
229 }
230
231 public void setHistoricoEfiecHs(Set<HistoricoEfiecH> historicoEfiecHs) {
232 this.historicoEfiecHs = historicoEfiecHs;
233 }
234
235 @OneToMany(fetch = FetchType.LAZY, mappedBy = "historicoMaster")
236 public Set<HistoricoEfieftH> getHistoricoEfieftHs() {
237 return this.historicoEfieftHs;
238 }
239
240 public void setHistoricoEfieftHs(Set<HistoricoEfieftH> historicoEfieftHs) {
241 this.historicoEfieftHs = historicoEfieftHs;
242 }
243
244 @OneToMany(fetch = FetchType.LAZY, mappedBy = "historicoMaster")
245 public Set<HistoricoEfiepH> getHistoricoEfiepHs() {
246 return this.historicoEfiepHs;
247 }
248
249 public void setHistoricoEfiepHs(Set<HistoricoEfiepH> historicoEfiepHs) {
250 this.historicoEfiepHs = historicoEfiepHs;
251 }
252
253 @OneToMany(fetch = FetchType.LAZY, mappedBy = "historicoMaster")
254 public Set<HistoricoEfierH> getHistoricoEfierHs() {
255 return this.historicoEfierHs;
256 }
257
258 public void setHistoricoEfierHs(Set<HistoricoEfierH> historicoEfierHs) {
259 this.historicoEfierHs = historicoEfierHs;
260 }
261
262 @OneToMany(fetch = FetchType.LAZY, mappedBy = "historicoMaster")
263 public Set<HistoricoIettSatbH> getHistoricoIettSatbHs() {
264 return this.historicoIettSatbHs;
265 }
266
267 public void setHistoricoIettSatbHs(Set<HistoricoIettSatbH> historicoIettSatbHs) {
268 this.historicoIettSatbHs = historicoIettSatbHs;
269 }
270
271 }