1 package ecar.pojo;
2
3
4
5 import java.math.BigDecimal;
6 import java.util.Date;
7 import javax.persistence.Column;
8 import javax.persistence.Entity;
9 import javax.persistence.FetchType;
10 import javax.persistence.GeneratedValue;
11 import javax.persistence.Id;
12 import javax.persistence.JoinColumn;
13 import javax.persistence.ManyToOne;
14 import javax.persistence.Table;
15 import javax.persistence.Temporal;
16 import javax.persistence.TemporalType;
17 import org.hibernate.annotations.GenericGenerator;
18
19
20
21
22 @Entity
23 @Table(name = "TB_HISTORICO_EFIEPH")
24 public class HistoricoEfiepH implements java.io.Serializable {
25
26 private Long codEfiepH;
27 private Date dataInclusaoEfiep;
28 private String indAtivoEfiep;
29 private BigDecimal valorRevisadoEfiep;
30 private BigDecimal valorAprovadoEfiep;
31 private ItemEstruturaIett itemEstruturaIett;
32 private FonteRecursoFonr fonteRecursoFonr;
33 private ExercicioExe exercicioExe;
34 private RecursoRec recursoRec;
35 private UsuarioUsu usuManutencao;
36 private HistoricoMaster historicoMaster;
37
38 public HistoricoEfiepH() {
39 }
40
41 public HistoricoEfiepH(Date dataInclusaoEfiep, String indAtivoEfiep, BigDecimal valorRevisadoEfiep, BigDecimal valorAprovadoEfiep, ItemEstruturaIett itemEstruturaIett, FonteRecursoFonr fonteRecursoFonr, ExercicioExe exercicioExe, RecursoRec recursoRec, UsuarioUsu usuManutencao, HistoricoMaster historicoMaster) {
42 this.dataInclusaoEfiep = dataInclusaoEfiep;
43 this.indAtivoEfiep = indAtivoEfiep;
44 this.valorRevisadoEfiep = valorRevisadoEfiep;
45 this.valorAprovadoEfiep = valorAprovadoEfiep;
46 this.itemEstruturaIett = itemEstruturaIett;
47 this.fonteRecursoFonr = fonteRecursoFonr;
48 this.exercicioExe = exercicioExe;
49 this.recursoRec = recursoRec;
50 this.usuManutencao = usuManutencao;
51 this.historicoMaster = historicoMaster;
52 }
53
54 @GenericGenerator(name = "generator", strategy = "increment")
55 @Id
56 @GeneratedValue(generator = "generator")
57 @Column(name = "COD_EFIEPH", nullable = false)
58 public Long getCodEfiepH() {
59 return this.codEfiepH;
60 }
61
62 public void setCodEfiepH(Long codEfiepH) {
63 this.codEfiepH = codEfiepH;
64 }
65
66 @Temporal(TemporalType.TIMESTAMP)
67 @Column(name = "DATA_INCLUSAO_EFIEP", length = 7)
68 public Date getDataInclusaoEfiep() {
69 return this.dataInclusaoEfiep;
70 }
71
72 public void setDataInclusaoEfiep(Date dataInclusaoEfiep) {
73 this.dataInclusaoEfiep = dataInclusaoEfiep;
74 }
75
76 @Column(name = "IND_ATIVO_EFIEP", length = 1)
77 public String getIndAtivoEfiep() {
78 return this.indAtivoEfiep;
79 }
80
81 public void setIndAtivoEfiep(String indAtivoEfiep) {
82 this.indAtivoEfiep = indAtivoEfiep;
83 }
84
85 @Column(name = "VALOR_REVISADO_EFIEP", length = 14)
86 public BigDecimal getValorRevisadoEfiep() {
87 return this.valorRevisadoEfiep;
88 }
89
90 public void setValorRevisadoEfiep(BigDecimal valorRevisadoEfiep) {
91 this.valorRevisadoEfiep = valorRevisadoEfiep;
92 }
93
94 @Column(name = "VALOR_APROVADO_EFIEP", length = 14)
95 public BigDecimal getValorAprovadoEfiep() {
96 return this.valorAprovadoEfiep;
97 }
98
99 public void setValorAprovadoEfiep(BigDecimal valorAprovadoEfiep) {
100 this.valorAprovadoEfiep = valorAprovadoEfiep;
101 }
102
103 @ManyToOne(fetch = FetchType.LAZY)
104 @JoinColumn(name = "COD_IETT")
105 public ItemEstruturaIett getItemEstruturaIett() {
106 return this.itemEstruturaIett;
107 }
108
109 public void setItemEstruturaIett(ItemEstruturaIett itemEstruturaIett) {
110 this.itemEstruturaIett = itemEstruturaIett;
111 }
112
113 @ManyToOne(fetch = FetchType.LAZY)
114 @JoinColumn(name = "COD_FONR")
115 public FonteRecursoFonr getFonteRecursoFonr() {
116 return this.fonteRecursoFonr;
117 }
118
119 public void setFonteRecursoFonr(FonteRecursoFonr fonteRecursoFonr) {
120 this.fonteRecursoFonr = fonteRecursoFonr;
121 }
122
123 @ManyToOne(fetch = FetchType.LAZY)
124 @JoinColumn(name = "COD_EXE")
125 public ExercicioExe getExercicioExe() {
126 return this.exercicioExe;
127 }
128
129 public void setExercicioExe(ExercicioExe exercicioExe) {
130 this.exercicioExe = exercicioExe;
131 }
132
133 @ManyToOne(fetch = FetchType.LAZY)
134 @JoinColumn(name = "COD_REC")
135 public RecursoRec getRecursoRec() {
136 return this.recursoRec;
137 }
138
139 public void setRecursoRec(RecursoRec recursoRec) {
140 this.recursoRec = recursoRec;
141 }
142
143 @ManyToOne(fetch = FetchType.LAZY)
144 @JoinColumn(name = "COD_USU_MANUTENCAO")
145 public UsuarioUsu getUsuManutencao() {
146 return this.usuManutencao;
147 }
148
149 public void setUsuManutencao(UsuarioUsu usuManutencao) {
150 this.usuManutencao = usuManutencao;
151 }
152
153 @ManyToOne(fetch = FetchType.LAZY)
154 @JoinColumn(name = "COD_MAH")
155 public HistoricoMaster getHistoricoMaster() {
156 return this.historicoMaster;
157 }
158
159 public void setHistoricoMaster(HistoricoMaster historicoMaster) {
160 this.historicoMaster = historicoMaster;
161 }
162
163 }