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_EFIEFTH")
24 public class HistoricoEfieftH implements java.io.Serializable {
25
26 private Long codEfieftH;
27 private BigDecimal valorEfieft;
28 private Date dataValorEfieft;
29 private String indAtivoEfieft;
30 private Date dataInclusaoEfieft;
31 private ItemEstruturaIett itemEstruturaIett;
32 private FonteRecursoFonr fonteRecursoFonr;
33 private UsuarioUsu usuManutencao;
34 private HistoricoMaster historicoMaster;
35
36 public HistoricoEfieftH() {
37 }
38
39 public HistoricoEfieftH(BigDecimal valorEfieft, Date dataValorEfieft, String indAtivoEfieft, Date dataInclusaoEfieft, ItemEstruturaIett itemEstruturaIett, FonteRecursoFonr fonteRecursoFonr, UsuarioUsu usuManutencao, HistoricoMaster historicoMaster) {
40 this.valorEfieft = valorEfieft;
41 this.dataValorEfieft = dataValorEfieft;
42 this.indAtivoEfieft = indAtivoEfieft;
43 this.dataInclusaoEfieft = dataInclusaoEfieft;
44 this.itemEstruturaIett = itemEstruturaIett;
45 this.fonteRecursoFonr = fonteRecursoFonr;
46 this.usuManutencao = usuManutencao;
47 this.historicoMaster = historicoMaster;
48 }
49
50 @GenericGenerator(name = "generator", strategy = "increment")
51 @Id
52 @GeneratedValue(generator = "generator")
53 @Column(name = "COD_EFIEFTH", nullable = false)
54 public Long getCodEfieftH() {
55 return this.codEfieftH;
56 }
57
58 public void setCodEfieftH(Long codEfieftH) {
59 this.codEfieftH = codEfieftH;
60 }
61
62 @Column(name = "VALOR_EFIEFT", length = 14)
63 public BigDecimal getValorEfieft() {
64 return this.valorEfieft;
65 }
66
67 public void setValorEfieft(BigDecimal valorEfieft) {
68 this.valorEfieft = valorEfieft;
69 }
70
71 @Temporal(TemporalType.TIMESTAMP)
72 @Column(name = "DATA_VALOR_EFIEFT", length = 7)
73 public Date getDataValorEfieft() {
74 return this.dataValorEfieft;
75 }
76
77 public void setDataValorEfieft(Date dataValorEfieft) {
78 this.dataValorEfieft = dataValorEfieft;
79 }
80
81 @Column(name = "IND_ATIVO_EFIEFT", length = 1)
82 public String getIndAtivoEfieft() {
83 return this.indAtivoEfieft;
84 }
85
86 public void setIndAtivoEfieft(String indAtivoEfieft) {
87 this.indAtivoEfieft = indAtivoEfieft;
88 }
89
90 @Temporal(TemporalType.TIMESTAMP)
91 @Column(name = "DATA_INCLUSAO_EFIEFT", length = 7)
92 public Date getDataInclusaoEfieft() {
93 return this.dataInclusaoEfieft;
94 }
95
96 public void setDataInclusaoEfieft(Date dataInclusaoEfieft) {
97 this.dataInclusaoEfieft = dataInclusaoEfieft;
98 }
99
100 @ManyToOne(fetch = FetchType.LAZY)
101 @JoinColumn(name = "COD_IETT")
102 public ItemEstruturaIett getItemEstruturaIett() {
103 return this.itemEstruturaIett;
104 }
105
106 public void setItemEstruturaIett(ItemEstruturaIett itemEstruturaIett) {
107 this.itemEstruturaIett = itemEstruturaIett;
108 }
109
110 @ManyToOne(fetch = FetchType.LAZY)
111 @JoinColumn(name = "COD_FONR")
112 public FonteRecursoFonr getFonteRecursoFonr() {
113 return this.fonteRecursoFonr;
114 }
115
116 public void setFonteRecursoFonr(FonteRecursoFonr fonteRecursoFonr) {
117 this.fonteRecursoFonr = fonteRecursoFonr;
118 }
119
120 @ManyToOne(fetch = FetchType.LAZY)
121 @JoinColumn(name = "COD_USU_MANUTENCAO")
122 public UsuarioUsu getUsuManutencao() {
123 return this.usuManutencao;
124 }
125
126 public void setUsuManutencao(UsuarioUsu usuManutencao) {
127 this.usuManutencao = usuManutencao;
128 }
129
130 @ManyToOne(fetch = FetchType.LAZY)
131 @JoinColumn(name = "COD_MAH")
132 public HistoricoMaster getHistoricoMaster() {
133 return this.historicoMaster;
134 }
135
136 public void setHistoricoMaster(HistoricoMaster historicoMaster) {
137 this.historicoMaster = historicoMaster;
138 }
139
140 }