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_REAL_FISICO_ARF")
27 public class AcompRealFisicoArf implements java.io.Serializable {
28
29 private static final long serialVersionUID = -6288178719739994645L;
30
31 private Long codArf;
32 private Date dataInclusaoArf;
33 private Double qtdRealizadaArf;
34 private Date dataUltManut;
35 private Long mesArf;
36 private Long anoArf;
37 private ItemEstruturaIett itemEstruturaIett;
38 private ItemEstrtIndResulIettr itemEstrtIndResulIettr;
39 private SituacaoSit situacaoSit;
40 private Set<AcompRealFisicoLocalArfl> acompRealFisicoLocalArfls = new HashSet<AcompRealFisicoLocalArfl>(0);
41 private UsuarioUsu usuarioUltManut;
42
43 public AcompRealFisicoArf() {
44 }
45
46 public AcompRealFisicoArf(Date dataInclusaoArf, Double qtdRealizadaArf, Date dataUltManut, Long mesArf, Long anoArf, ItemEstruturaIett itemEstruturaIett, ItemEstrtIndResulIettr itemEstrtIndResulIettr, SituacaoSit situacaoSit, Set<AcompRealFisicoLocalArfl> acompRealFisicoLocalArfls, UsuarioUsu usuarioUltManut) {
47 this.dataInclusaoArf = dataInclusaoArf;
48 this.qtdRealizadaArf = qtdRealizadaArf;
49 this.dataUltManut = dataUltManut;
50 this.mesArf = mesArf;
51 this.anoArf = anoArf;
52 this.itemEstruturaIett = itemEstruturaIett;
53 this.itemEstrtIndResulIettr = itemEstrtIndResulIettr;
54 this.situacaoSit = situacaoSit;
55 this.acompRealFisicoLocalArfls = acompRealFisicoLocalArfls;
56 this.usuarioUltManut = usuarioUltManut;
57 }
58
59 @GenericGenerator(name = "generator", strategy = "increment")
60 @Id
61 @GeneratedValue(generator = "generator")
62 @Column(name = "COD_ARF", nullable = false)
63 public Long getCodArf() {
64 return this.codArf;
65 }
66
67 public void setCodArf(Long codArf) {
68 this.codArf = codArf;
69 }
70
71 @Temporal(TemporalType.TIMESTAMP)
72 @Column(name = "DATA_INCLUSAO_ARF", length = 7)
73 public Date getDataInclusaoArf() {
74 return this.dataInclusaoArf;
75 }
76
77 public void setDataInclusaoArf(Date dataInclusaoArf) {
78 this.dataInclusaoArf = dataInclusaoArf;
79 }
80
81 @Column(name = "QTD_REALIZADA_ARF", length = 14)
82 public Double getQtdRealizadaArf() {
83 return this.qtdRealizadaArf;
84 }
85
86 public void setQtdRealizadaArf(Double qtdRealizadaArf) {
87 this.qtdRealizadaArf = qtdRealizadaArf;
88 }
89
90 @Temporal(TemporalType.TIMESTAMP)
91 @Column(name = "DATA_ULT_MANUT")
92 public Date getDataUltManut() {
93 return this.dataUltManut;
94 }
95
96 public void setDataUltManut(Date dataUltManut) {
97 this.dataUltManut = dataUltManut;
98 }
99
100 @Column(name = "MES_ARF", length = 2)
101 public Long getMesArf() {
102 return this.mesArf;
103 }
104
105 public void setMesArf(Long mesArf) {
106 this.mesArf = mesArf;
107 }
108
109 @Column(name = "ANO_ARF", length = 4)
110 public Long getAnoArf() {
111 return this.anoArf;
112 }
113
114 public void setAnoArf(Long anoArf) {
115 this.anoArf = anoArf;
116 }
117
118 @ManyToOne(fetch = FetchType.LAZY)
119 @JoinColumn(name = "COD_IETT")
120 public ItemEstruturaIett getItemEstruturaIett() {
121 return this.itemEstruturaIett;
122 }
123
124 public void setItemEstruturaIett(ItemEstruturaIett itemEstruturaIett) {
125 this.itemEstruturaIett = itemEstruturaIett;
126 }
127
128 @ManyToOne(fetch = FetchType.LAZY)
129 @JoinColumn(name = "COD_IETTIR")
130 public ItemEstrtIndResulIettr getItemEstrtIndResulIettr() {
131 return this.itemEstrtIndResulIettr;
132 }
133
134 public void setItemEstrtIndResulIettr(ItemEstrtIndResulIettr itemEstrtIndResulIettr) {
135 this.itemEstrtIndResulIettr = itemEstrtIndResulIettr;
136 }
137
138 @ManyToOne(fetch = FetchType.LAZY)
139 @JoinColumn(name = "COD_SIT")
140 public SituacaoSit getSituacaoSit() {
141 return this.situacaoSit;
142 }
143
144 public void setSituacaoSit(SituacaoSit situacaoSit) {
145 this.situacaoSit = situacaoSit;
146 }
147
148 @OneToMany(cascade = CascadeType.REMOVE, fetch = FetchType.LAZY, mappedBy = "acompRealFisicoArf")
149 public Set<AcompRealFisicoLocalArfl> getAcompRealFisicoLocalArfls() {
150 return this.acompRealFisicoLocalArfls;
151 }
152
153 public void setAcompRealFisicoLocalArfls(Set<AcompRealFisicoLocalArfl> acompRealFisicoLocalArfls) {
154 this.acompRealFisicoLocalArfls = acompRealFisicoLocalArfls;
155 }
156
157 @ManyToOne(fetch = FetchType.LAZY)
158 @JoinColumn(name = "COD_USU_ULT_MANUT")
159 public UsuarioUsu getUsuarioUltManut() {
160 return this.usuarioUltManut;
161 }
162
163 public void setUsuarioUltManut(UsuarioUsu usuarioUltManut) {
164 this.usuarioUltManut = usuarioUltManut;
165 }
166
167 }