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.Column;
9 import javax.persistence.Entity;
10 import javax.persistence.FetchType;
11 import javax.persistence.GeneratedValue;
12 import javax.persistence.Id;
13 import javax.persistence.JoinColumn;
14 import javax.persistence.ManyToOne;
15 import javax.persistence.OneToMany;
16 import javax.persistence.Table;
17 import javax.persistence.Temporal;
18 import javax.persistence.TemporalType;
19 import org.hibernate.annotations.GenericGenerator;
20
21
22
23
24 @Entity
25 @Table(name = "TB_FONTE_RECURSO_FONR")
26 public class FonteRecursoFonr implements java.io.Serializable {
27
28 private Long codFonr;
29 private String indAtivoFonr;
30 private Date dataInclusaoFonr;
31 private Date dataFimValidadeFonr;
32 private Date dataIniValidadeFonr;
33 private String indOrcamentoFonr;
34 private String nomeFonr;
35 private Integer sequenciaFonr;
36 private String siglaFonr;
37 private ConfigSisExecFinanCsef configSisExecFinanCsef;
38 private Set<EfItemEstContaEfiec> efItemEstContaEfiecs = new HashSet<EfItemEstContaEfiec>(0);
39 private Set<EfItemEstPrevisaoEfiep> efItemEstPrevisaoEfieps = new HashSet<EfItemEstPrevisaoEfiep>(0);
40 private Set<EfIettFonteTotEfieft> efIettFonteTotEfiefts = new HashSet<EfIettFonteTotEfieft>(0);
41 private Set<EfIettPrevisaoRevEfiepr> efIettPrevisaoRevEfieprs = new HashSet<EfIettPrevisaoRevEfiepr>(0);
42 private Set<HistoricoEfiecH> historicoEfiecHs = new HashSet<HistoricoEfiecH>(0);
43 private Set<HistoricoEfieftH> historicoEfieftHs = new HashSet<HistoricoEfieftH>(0);
44 private Set<HistoricoEfiepH> historicoEfiepHs = new HashSet<HistoricoEfiepH>(0);
45
46 public FonteRecursoFonr() {
47 }
48
49 public FonteRecursoFonr(String indAtivoFonr, Date dataInclusaoFonr, Date dataFimValidadeFonr, Date dataIniValidadeFonr, String indOrcamentoFonr, String nomeFonr, Integer sequenciaFonr, String siglaFonr, ConfigSisExecFinanCsef configSisExecFinanCsef, Set<EfItemEstContaEfiec> efItemEstContaEfiecs, Set<EfItemEstPrevisaoEfiep> efItemEstPrevisaoEfieps, Set<EfIettFonteTotEfieft> efIettFonteTotEfiefts, Set<EfIettPrevisaoRevEfiepr> efIettPrevisaoRevEfieprs, Set<HistoricoEfiecH> historicoEfiecHs, Set<HistoricoEfieftH> historicoEfieftHs, Set<HistoricoEfiepH> historicoEfiepHs) {
50 this.indAtivoFonr = indAtivoFonr;
51 this.dataInclusaoFonr = dataInclusaoFonr;
52 this.dataFimValidadeFonr = dataFimValidadeFonr;
53 this.dataIniValidadeFonr = dataIniValidadeFonr;
54 this.indOrcamentoFonr = indOrcamentoFonr;
55 this.nomeFonr = nomeFonr;
56 this.sequenciaFonr = sequenciaFonr;
57 this.siglaFonr = siglaFonr;
58 this.configSisExecFinanCsef = configSisExecFinanCsef;
59 this.efItemEstContaEfiecs = efItemEstContaEfiecs;
60 this.efItemEstPrevisaoEfieps = efItemEstPrevisaoEfieps;
61 this.efIettFonteTotEfiefts = efIettFonteTotEfiefts;
62 this.efIettPrevisaoRevEfieprs = efIettPrevisaoRevEfieprs;
63 this.historicoEfiecHs = historicoEfiecHs;
64 this.historicoEfieftHs = historicoEfieftHs;
65 this.historicoEfiepHs = historicoEfiepHs;
66 }
67
68 @GenericGenerator(name = "generator", strategy = "increment")
69 @Id
70 @GeneratedValue(generator = "generator")
71 @Column(name = "COD_FONR", nullable = false)
72 public Long getCodFonr() {
73 return this.codFonr;
74 }
75
76 public void setCodFonr(Long codFonr) {
77 this.codFonr = codFonr;
78 }
79
80 @Column(name = "IND_ATIVO_FONR", length = 1)
81 public String getIndAtivoFonr() {
82 return this.indAtivoFonr;
83 }
84
85 public void setIndAtivoFonr(String indAtivoFonr) {
86 this.indAtivoFonr = indAtivoFonr;
87 }
88
89 @Temporal(TemporalType.TIMESTAMP)
90 @Column(name = "DATA_INCLUSAO_FONR", length = 7)
91 public Date getDataInclusaoFonr() {
92 return this.dataInclusaoFonr;
93 }
94
95 public void setDataInclusaoFonr(Date dataInclusaoFonr) {
96 this.dataInclusaoFonr = dataInclusaoFonr;
97 }
98
99 @Temporal(TemporalType.TIMESTAMP)
100 @Column(name = "DATA_FIM_VALIDADE_FONR", length = 7)
101 public Date getDataFimValidadeFonr() {
102 return this.dataFimValidadeFonr;
103 }
104
105 public void setDataFimValidadeFonr(Date dataFimValidadeFonr) {
106 this.dataFimValidadeFonr = dataFimValidadeFonr;
107 }
108
109 @Temporal(TemporalType.TIMESTAMP)
110 @Column(name = "DATA_INI_VALIDADE_FONR", length = 7)
111 public Date getDataIniValidadeFonr() {
112 return this.dataIniValidadeFonr;
113 }
114
115 public void setDataIniValidadeFonr(Date dataIniValidadeFonr) {
116 this.dataIniValidadeFonr = dataIniValidadeFonr;
117 }
118
119 @Column(name = "IND_ORCAMENTO_FONR", length = 1)
120 public String getIndOrcamentoFonr() {
121 return this.indOrcamentoFonr;
122 }
123
124 public void setIndOrcamentoFonr(String indOrcamentoFonr) {
125 this.indOrcamentoFonr = indOrcamentoFonr;
126 }
127
128 @Column(name = "NOME_FONR", length = 30)
129 public String getNomeFonr() {
130 return this.nomeFonr;
131 }
132
133 public void setNomeFonr(String nomeFonr) {
134 this.nomeFonr = nomeFonr;
135 }
136
137 @Column(name = "SEQUENCIA_FONR", length = 2)
138 public Integer getSequenciaFonr() {
139 return this.sequenciaFonr;
140 }
141
142 public void setSequenciaFonr(Integer sequenciaFonr) {
143 this.sequenciaFonr = sequenciaFonr;
144 }
145
146 @Column(name = "SIGLA_FONR", length = 10)
147 public String getSiglaFonr() {
148 return this.siglaFonr;
149 }
150
151 public void setSiglaFonr(String siglaFonr) {
152 this.siglaFonr = siglaFonr;
153 }
154
155 @ManyToOne(fetch = FetchType.LAZY)
156 @JoinColumn(name = "COD_CSEF")
157 public ConfigSisExecFinanCsef getConfigSisExecFinanCsef() {
158 return this.configSisExecFinanCsef;
159 }
160
161 public void setConfigSisExecFinanCsef(ConfigSisExecFinanCsef configSisExecFinanCsef) {
162 this.configSisExecFinanCsef = configSisExecFinanCsef;
163 }
164
165 @OneToMany(fetch = FetchType.LAZY, mappedBy = "fonteRecursoFonr")
166 public Set<EfItemEstContaEfiec> getEfItemEstContaEfiecs() {
167 return this.efItemEstContaEfiecs;
168 }
169
170 public void setEfItemEstContaEfiecs(Set<EfItemEstContaEfiec> efItemEstContaEfiecs) {
171 this.efItemEstContaEfiecs = efItemEstContaEfiecs;
172 }
173
174 @OneToMany(fetch = FetchType.LAZY, mappedBy = "fonteRecursoFonr")
175 public Set<EfItemEstPrevisaoEfiep> getEfItemEstPrevisaoEfieps() {
176 return this.efItemEstPrevisaoEfieps;
177 }
178
179 public void setEfItemEstPrevisaoEfieps(Set<EfItemEstPrevisaoEfiep> efItemEstPrevisaoEfieps) {
180 this.efItemEstPrevisaoEfieps = efItemEstPrevisaoEfieps;
181 }
182
183 @OneToMany(fetch = FetchType.LAZY, mappedBy = "fonteRecursoFonr")
184 public Set<EfIettFonteTotEfieft> getEfIettFonteTotEfiefts() {
185 return this.efIettFonteTotEfiefts;
186 }
187
188 public void setEfIettFonteTotEfiefts(Set<EfIettFonteTotEfieft> efIettFonteTotEfiefts) {
189 this.efIettFonteTotEfiefts = efIettFonteTotEfiefts;
190 }
191
192 @OneToMany(fetch = FetchType.LAZY, mappedBy = "fonteRecursoFonr")
193 public Set<EfIettPrevisaoRevEfiepr> getEfIettPrevisaoRevEfieprs() {
194 return this.efIettPrevisaoRevEfieprs;
195 }
196
197 public void setEfIettPrevisaoRevEfieprs(Set<EfIettPrevisaoRevEfiepr> efIettPrevisaoRevEfieprs) {
198 this.efIettPrevisaoRevEfieprs = efIettPrevisaoRevEfieprs;
199 }
200
201 @OneToMany(fetch = FetchType.LAZY, mappedBy = "fonteRecursoFonr")
202 public Set<HistoricoEfiecH> getHistoricoEfiecHs() {
203 return this.historicoEfiecHs;
204 }
205
206 public void setHistoricoEfiecHs(Set<HistoricoEfiecH> historicoEfiecHs) {
207 this.historicoEfiecHs = historicoEfiecHs;
208 }
209
210 @OneToMany(fetch = FetchType.LAZY, mappedBy = "fonteRecursoFonr")
211 public Set<HistoricoEfieftH> getHistoricoEfieftHs() {
212 return this.historicoEfieftHs;
213 }
214
215 public void setHistoricoEfieftHs(Set<HistoricoEfieftH> historicoEfieftHs) {
216 this.historicoEfieftHs = historicoEfieftHs;
217 }
218
219 @OneToMany(fetch = FetchType.LAZY, mappedBy = "fonteRecursoFonr")
220 public Set<HistoricoEfiepH> getHistoricoEfiepHs() {
221 return this.historicoEfiepHs;
222 }
223
224 public void setHistoricoEfiepHs(Set<HistoricoEfiepH> historicoEfiepHs) {
225 this.historicoEfiepHs = historicoEfiepHs;
226 }
227
228 }