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.CascadeType;
9 import javax.persistence.Column;
10 import javax.persistence.Entity;
11 import javax.persistence.FetchType;
12 import javax.persistence.GeneratedValue;
13 import javax.persistence.Id;
14 import javax.persistence.JoinColumn;
15 import javax.persistence.ManyToOne;
16 import javax.persistence.OneToMany;
17 import javax.persistence.Table;
18 import javax.persistence.Temporal;
19 import javax.persistence.TemporalType;
20 import org.hibernate.annotations.GenericGenerator;
21
22
23
24
25 @Entity
26 @Table(name = "TB_ACOMP_RELATORIO_AREL")
27 public class AcompRelatorioArel implements java.io.Serializable {
28
29 private static final long serialVersionUID = -4055424697540477253L;
30
31 private Long codArel;
32 private Date dataUltManutArel;
33 private Date dataInclusaoArel;
34 private String indLiberadoArel;
35 private String descricaoArel;
36 private String complementoArel;
37 private TipoFuncAcompTpfa tipoFuncAcompTpfa;
38 private AcompReferenciaItemAri acompReferenciaItemAri;
39 private SituacaoSit situacaoSit;
40 private UsuarioUsu usuarioUsuUltimaManutencao;
41 private UsuarioUsu usuarioUsu;
42 private Cor cor;
43 private Set<ItemEstrutUploadIettup> itemEstrutUploadIettup = new HashSet<ItemEstrutUploadIettup>(0);
44 private Set<PontoCriticoPtc> pontoCriticoPtc = new HashSet<PontoCriticoPtc>(0);
45
46 public AcompRelatorioArel() {
47 }
48
49 public AcompRelatorioArel(Date dataUltManutArel, Date dataInclusaoArel, String indLiberadoArel, String descricaoArel, String complementoArel, TipoFuncAcompTpfa tipoFuncAcompTpfa, AcompReferenciaItemAri acompReferenciaItemAri, SituacaoSit situacaoSit, UsuarioUsu usuarioUsuUltimaManutencao, UsuarioUsu usuarioUsu, Cor cor, Set<ItemEstrutUploadIettup> itemEstrutUploadIettup, Set<PontoCriticoPtc> pontoCriticoPtc) {
50 this.dataUltManutArel = dataUltManutArel;
51 this.dataInclusaoArel = dataInclusaoArel;
52 this.indLiberadoArel = indLiberadoArel;
53 this.descricaoArel = descricaoArel;
54 this.complementoArel = complementoArel;
55 this.tipoFuncAcompTpfa = tipoFuncAcompTpfa;
56 this.acompReferenciaItemAri = acompReferenciaItemAri;
57 this.situacaoSit = situacaoSit;
58 this.usuarioUsuUltimaManutencao = usuarioUsuUltimaManutencao;
59 this.usuarioUsu = usuarioUsu;
60 this.cor = cor;
61 this.itemEstrutUploadIettup = itemEstrutUploadIettup;
62 this.pontoCriticoPtc = pontoCriticoPtc;
63 }
64
65 @GenericGenerator(name = "generator", strategy = "increment")
66 @Id
67 @GeneratedValue(generator = "generator")
68 @Column(name = "COD_AREL", nullable = false)
69 public Long getCodArel() {
70 return this.codArel;
71 }
72
73 public void setCodArel(Long codArel) {
74 this.codArel = codArel;
75 }
76
77 @Temporal(TemporalType.TIMESTAMP)
78 @Column(name = "DATA_ULT_MANUT_AREL", length = 7)
79 public Date getDataUltManutArel() {
80 return this.dataUltManutArel;
81 }
82
83 public void setDataUltManutArel(Date dataUltManutArel) {
84 this.dataUltManutArel = dataUltManutArel;
85 }
86
87 @Temporal(TemporalType.TIMESTAMP)
88 @Column(name = "DATA_INCLUSAO_AREL", length = 7)
89 public Date getDataInclusaoArel() {
90 return this.dataInclusaoArel;
91 }
92
93 public void setDataInclusaoArel(Date dataInclusaoArel) {
94 this.dataInclusaoArel = dataInclusaoArel;
95 }
96
97 @Column(name = "IND_LIBERADO_AREL", length = 1)
98 public String getIndLiberadoArel() {
99 return this.indLiberadoArel;
100 }
101
102 public void setIndLiberadoArel(String indLiberadoArel) {
103 this.indLiberadoArel = indLiberadoArel;
104 }
105
106 @Column(name = "DESCRICAO_AREL", length = 2000)
107 public String getDescricaoArel() {
108 return this.descricaoArel;
109 }
110
111 public void setDescricaoArel(String descricaoArel) {
112 this.descricaoArel = descricaoArel;
113 }
114
115 @Column(name = "COMPLEMENTO_AREL", length = 2000)
116 public String getComplementoArel() {
117 return this.complementoArel;
118 }
119
120 public void setComplementoArel(String complementoArel) {
121 this.complementoArel = complementoArel;
122 }
123
124 @ManyToOne(fetch = FetchType.LAZY)
125 @JoinColumn(name = "COD_TPFA")
126 public TipoFuncAcompTpfa getTipoFuncAcompTpfa() {
127 return this.tipoFuncAcompTpfa;
128 }
129
130 public void setTipoFuncAcompTpfa(TipoFuncAcompTpfa tipoFuncAcompTpfa) {
131 this.tipoFuncAcompTpfa = tipoFuncAcompTpfa;
132 }
133
134 @ManyToOne(fetch = FetchType.LAZY)
135 @JoinColumn(name = "COD_ARI")
136 public AcompReferenciaItemAri getAcompReferenciaItemAri() {
137 return this.acompReferenciaItemAri;
138 }
139
140 public void setAcompReferenciaItemAri(AcompReferenciaItemAri acompReferenciaItemAri) {
141 this.acompReferenciaItemAri = acompReferenciaItemAri;
142 }
143
144 @ManyToOne(fetch = FetchType.LAZY)
145 @JoinColumn(name = "COD_SIT")
146 public SituacaoSit getSituacaoSit() {
147 return this.situacaoSit;
148 }
149
150 public void setSituacaoSit(SituacaoSit situacaoSit) {
151 this.situacaoSit = situacaoSit;
152 }
153
154 @ManyToOne(fetch = FetchType.LAZY)
155 @JoinColumn(name = "COD_USUULTMANUT_AREL")
156 public UsuarioUsu getUsuarioUsuUltimaManutencao() {
157 return this.usuarioUsuUltimaManutencao;
158 }
159
160 public void setUsuarioUsuUltimaManutencao(UsuarioUsu usuarioUsuUltimaManutencao) {
161 this.usuarioUsuUltimaManutencao = usuarioUsuUltimaManutencao;
162 }
163
164 @ManyToOne(fetch = FetchType.LAZY)
165 @JoinColumn(name = "COD_USU")
166 public UsuarioUsu getUsuarioUsu() {
167 return this.usuarioUsu;
168 }
169
170 public void setUsuarioUsu(UsuarioUsu usuarioUsu) {
171 this.usuarioUsu = usuarioUsu;
172 }
173
174 @ManyToOne(fetch = FetchType.LAZY)
175 @JoinColumn(name = "COD_COR")
176 public Cor getCor() {
177 return this.cor;
178 }
179
180 public void setCor(Cor cor) {
181 this.cor = cor;
182 }
183
184 @OneToMany(cascade = CascadeType.REMOVE, fetch = FetchType.LAZY, mappedBy = "acompRelatorioArel")
185 public Set<ItemEstrutUploadIettup> getItemEstrutUploadIettup() {
186 return this.itemEstrutUploadIettup;
187 }
188
189 public void setItemEstrutUploadIettup(Set<ItemEstrutUploadIettup> itemEstrutUploadIettup) {
190 this.itemEstrutUploadIettup = itemEstrutUploadIettup;
191 }
192
193 @OneToMany(cascade = CascadeType.REMOVE, fetch = FetchType.LAZY, mappedBy = "acompRelatorioArel")
194 public Set<PontoCriticoPtc> getPontoCriticoPtc() {
195 return this.pontoCriticoPtc;
196 }
197
198 public void setPontoCriticoPtc(Set<PontoCriticoPtc> pontoCriticoPtc) {
199 this.pontoCriticoPtc = pontoCriticoPtc;
200 }
201
202 }