1 package ecar.pojo;
2
3
4
5 import java.util.HashSet;
6 import java.util.Set;
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.OneToMany;
15 import javax.persistence.Table;
16 import org.hibernate.annotations.GenericGenerator;
17
18
19
20
21 @Entity
22 @Table(name = "TB_EF_ITEM_EST_CONTA_EFIEC")
23 public class EfItemEstContaEfiec implements java.io.Serializable {
24
25 private Long codEfiec;
26 private String indAcumuladoEfiec;
27 private String indAtivoEfiec;
28 private String contaSistemaOrcEfiec;
29 private Integer formaInclusao;
30 private Boolean indExclusaoPosHistorico;
31 private ItemEstruturaIett itemEstruturaIett;
32 private FonteRecursoFonr fonteRecursoFonr;
33 private ExercicioExe exercicioExe;
34 private RecursoRec recursoRec;
35 private Set<HistoricoEfiecH> historicoEfiecHs = new HashSet<HistoricoEfiecH>(0);
36
37 public EfItemEstContaEfiec() {
38 }
39
40 public EfItemEstContaEfiec(String indAcumuladoEfiec, String indAtivoEfiec, String contaSistemaOrcEfiec, Integer formaInclusao, Boolean indExclusaoPosHistorico, ItemEstruturaIett itemEstruturaIett, FonteRecursoFonr fonteRecursoFonr, ExercicioExe exercicioExe, RecursoRec recursoRec, Set<HistoricoEfiecH> historicoEfiecHs) {
41 this.indAcumuladoEfiec = indAcumuladoEfiec;
42 this.indAtivoEfiec = indAtivoEfiec;
43 this.contaSistemaOrcEfiec = contaSistemaOrcEfiec;
44 this.formaInclusao = formaInclusao;
45 this.indExclusaoPosHistorico = indExclusaoPosHistorico;
46 this.itemEstruturaIett = itemEstruturaIett;
47 this.fonteRecursoFonr = fonteRecursoFonr;
48 this.exercicioExe = exercicioExe;
49 this.recursoRec = recursoRec;
50 this.historicoEfiecHs = historicoEfiecHs;
51 }
52
53 @GenericGenerator(name = "generator", strategy = "increment")
54 @Id
55 @GeneratedValue(generator = "generator")
56 @Column(name = "COD_EFIEC", nullable = false)
57 public Long getCodEfiec() {
58 return this.codEfiec;
59 }
60
61 public void setCodEfiec(Long codEfiec) {
62 this.codEfiec = codEfiec;
63 }
64
65 @Column(name = "IND_ACUMULADO_EFIEC", length = 1)
66 public String getIndAcumuladoEfiec() {
67 return this.indAcumuladoEfiec;
68 }
69
70 public void setIndAcumuladoEfiec(String indAcumuladoEfiec) {
71 this.indAcumuladoEfiec = indAcumuladoEfiec;
72 }
73
74 @Column(name = "IND_ATIVO_EFIEC", length = 1)
75 public String getIndAtivoEfiec() {
76 return this.indAtivoEfiec;
77 }
78
79 public void setIndAtivoEfiec(String indAtivoEfiec) {
80 this.indAtivoEfiec = indAtivoEfiec;
81 }
82
83 @Column(name = "CONTA_SISTEMA_ORC_EFIEC")
84 public String getContaSistemaOrcEfiec() {
85 return this.contaSistemaOrcEfiec;
86 }
87
88 public void setContaSistemaOrcEfiec(String contaSistemaOrcEfiec) {
89 this.contaSistemaOrcEfiec = contaSistemaOrcEfiec;
90 }
91
92 @Column(name = "FORMA_INCLUSAO", length = 2)
93 public Integer getFormaInclusao() {
94 return this.formaInclusao;
95 }
96
97 public void setFormaInclusao(Integer formaInclusao) {
98 this.formaInclusao = formaInclusao;
99 }
100
101 @Column(name = "IND_EXCLUSAO_POS_HISTORICO")
102 public Boolean getIndExclusaoPosHistorico() {
103 return this.indExclusaoPosHistorico;
104 }
105
106 public void setIndExclusaoPosHistorico(Boolean indExclusaoPosHistorico) {
107 this.indExclusaoPosHistorico = indExclusaoPosHistorico;
108 }
109
110 @ManyToOne(fetch = FetchType.LAZY)
111 @JoinColumn(name = "COD_IETT")
112 public ItemEstruturaIett getItemEstruturaIett() {
113 return this.itemEstruturaIett;
114 }
115
116 public void setItemEstruturaIett(ItemEstruturaIett itemEstruturaIett) {
117 this.itemEstruturaIett = itemEstruturaIett;
118 }
119
120 @ManyToOne(fetch = FetchType.LAZY)
121 @JoinColumn(name = "COD_FONR")
122 public FonteRecursoFonr getFonteRecursoFonr() {
123 return this.fonteRecursoFonr;
124 }
125
126 public void setFonteRecursoFonr(FonteRecursoFonr fonteRecursoFonr) {
127 this.fonteRecursoFonr = fonteRecursoFonr;
128 }
129
130 @ManyToOne(fetch = FetchType.LAZY)
131 @JoinColumn(name = "COD_EXE")
132 public ExercicioExe getExercicioExe() {
133 return this.exercicioExe;
134 }
135
136 public void setExercicioExe(ExercicioExe exercicioExe) {
137 this.exercicioExe = exercicioExe;
138 }
139
140 @ManyToOne(fetch = FetchType.LAZY)
141 @JoinColumn(name = "COD_REC")
142 public RecursoRec getRecursoRec() {
143 return this.recursoRec;
144 }
145
146 public void setRecursoRec(RecursoRec recursoRec) {
147 this.recursoRec = recursoRec;
148 }
149
150 @OneToMany(fetch = FetchType.LAZY, mappedBy = "efItemEstContaEfiec")
151 public Set<HistoricoEfiecH> getHistoricoEfiecHs() {
152 return this.historicoEfiecHs;
153 }
154
155 public void setHistoricoEfiecHs(Set<HistoricoEfiecH> historicoEfiecHs) {
156 this.historicoEfiecHs = historicoEfiecHs;
157 }
158
159 }