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.OneToMany;
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_RECURSO_REC")
24 public class RecursoRec implements java.io.Serializable {
25
26 private Long codRec;
27 private String indAtivoRec;
28 private String indOrcamentoRec;
29 private Date dataInclusaoRec;
30 private String siglaRec;
31 private Date dataFimValidadeRec;
32 private String nomeRec;
33 private Date dataIniValidadeRec;
34 private Integer sequenciaRec;
35 private Set<EfItemEstContaEfiec> efItemEstContaEfiecs = new HashSet<EfItemEstContaEfiec>(0);
36 private Set<EfItemEstPrevisaoEfiep> efItemEstPrevisaoEfieps = new HashSet<EfItemEstPrevisaoEfiep>(0);
37 private Set<EfIettPrevisaoRevEfiepr> efIettPrevisaoRevEfieprs = new HashSet<EfIettPrevisaoRevEfiepr>(0);
38 private Set<HistoricoEfiecH> historicoEfiecHs = new HashSet<HistoricoEfiecH>(0);
39 private Set<HistoricoEfiepH> historicoEfiepHs = new HashSet<HistoricoEfiepH>(0);
40 private Set<FonteFon> fonteFons = new HashSet<FonteFon>(0);
41
42 public RecursoRec() {
43 }
44
45 public RecursoRec(String indAtivoRec, String indOrcamentoRec, Date dataInclusaoRec, String siglaRec, Date dataFimValidadeRec, String nomeRec, Date dataIniValidadeRec, Integer sequenciaRec, Set<EfItemEstContaEfiec> efItemEstContaEfiecs, Set<EfItemEstPrevisaoEfiep> efItemEstPrevisaoEfieps, Set<EfIettPrevisaoRevEfiepr> efIettPrevisaoRevEfieprs, Set<HistoricoEfiecH> historicoEfiecHs, Set<HistoricoEfiepH> historicoEfiepHs, Set<FonteFon> fonteFons) {
46 this.indAtivoRec = indAtivoRec;
47 this.indOrcamentoRec = indOrcamentoRec;
48 this.dataInclusaoRec = dataInclusaoRec;
49 this.siglaRec = siglaRec;
50 this.dataFimValidadeRec = dataFimValidadeRec;
51 this.nomeRec = nomeRec;
52 this.dataIniValidadeRec = dataIniValidadeRec;
53 this.sequenciaRec = sequenciaRec;
54 this.efItemEstContaEfiecs = efItemEstContaEfiecs;
55 this.efItemEstPrevisaoEfieps = efItemEstPrevisaoEfieps;
56 this.efIettPrevisaoRevEfieprs = efIettPrevisaoRevEfieprs;
57 this.historicoEfiecHs = historicoEfiecHs;
58 this.historicoEfiepHs = historicoEfiepHs;
59 this.fonteFons = fonteFons;
60 }
61
62 @GenericGenerator(name = "generator", strategy = "increment")
63 @Id
64 @GeneratedValue(generator = "generator")
65 @Column(name = "COD_REC", nullable = false)
66 public Long getCodRec() {
67 return this.codRec;
68 }
69
70 public void setCodRec(Long codRec) {
71 this.codRec = codRec;
72 }
73
74 @Column(name = "IND_ATIVO_REC", length = 1)
75 public String getIndAtivoRec() {
76 return this.indAtivoRec;
77 }
78
79 public void setIndAtivoRec(String indAtivoRec) {
80 this.indAtivoRec = indAtivoRec;
81 }
82
83 @Column(name = "IND_ORCAMENTO_REC", length = 1)
84 public String getIndOrcamentoRec() {
85 return this.indOrcamentoRec;
86 }
87
88 public void setIndOrcamentoRec(String indOrcamentoRec) {
89 this.indOrcamentoRec = indOrcamentoRec;
90 }
91
92 @Temporal(TemporalType.TIMESTAMP)
93 @Column(name = "DATA_INCLUSAO_REC", length = 7)
94 public Date getDataInclusaoRec() {
95 return this.dataInclusaoRec;
96 }
97
98 public void setDataInclusaoRec(Date dataInclusaoRec) {
99 this.dataInclusaoRec = dataInclusaoRec;
100 }
101
102 @Column(name = "SIGLA_REC", length = 10)
103 public String getSiglaRec() {
104 return this.siglaRec;
105 }
106
107 public void setSiglaRec(String siglaRec) {
108 this.siglaRec = siglaRec;
109 }
110
111 @Temporal(TemporalType.TIMESTAMP)
112 @Column(name = "DATA_FIM_VALIDADE_REC", length = 7)
113 public Date getDataFimValidadeRec() {
114 return this.dataFimValidadeRec;
115 }
116
117 public void setDataFimValidadeRec(Date dataFimValidadeRec) {
118 this.dataFimValidadeRec = dataFimValidadeRec;
119 }
120
121 @Column(name = "NOME_REC", length = 100)
122 public String getNomeRec() {
123 return this.nomeRec;
124 }
125
126 public void setNomeRec(String nomeRec) {
127 this.nomeRec = nomeRec;
128 }
129
130 @Temporal(TemporalType.TIMESTAMP)
131 @Column(name = "DATA_INI_VALIDADE_REC", length = 7)
132 public Date getDataIniValidadeRec() {
133 return this.dataIniValidadeRec;
134 }
135
136 public void setDataIniValidadeRec(Date dataIniValidadeRec) {
137 this.dataIniValidadeRec = dataIniValidadeRec;
138 }
139
140 @Column(name = "SEQUENCIA_REC", length = 3)
141 public Integer getSequenciaRec() {
142 return this.sequenciaRec;
143 }
144
145 public void setSequenciaRec(Integer sequenciaRec) {
146 this.sequenciaRec = sequenciaRec;
147 }
148
149 @OneToMany(fetch = FetchType.LAZY, mappedBy = "recursoRec")
150 public Set<EfItemEstContaEfiec> getEfItemEstContaEfiecs() {
151 return this.efItemEstContaEfiecs;
152 }
153
154 public void setEfItemEstContaEfiecs(Set<EfItemEstContaEfiec> efItemEstContaEfiecs) {
155 this.efItemEstContaEfiecs = efItemEstContaEfiecs;
156 }
157
158 @OneToMany(fetch = FetchType.LAZY, mappedBy = "recursoRec")
159 public Set<EfItemEstPrevisaoEfiep> getEfItemEstPrevisaoEfieps() {
160 return this.efItemEstPrevisaoEfieps;
161 }
162
163 public void setEfItemEstPrevisaoEfieps(Set<EfItemEstPrevisaoEfiep> efItemEstPrevisaoEfieps) {
164 this.efItemEstPrevisaoEfieps = efItemEstPrevisaoEfieps;
165 }
166
167 @OneToMany(fetch = FetchType.LAZY, mappedBy = "recursoRec")
168 public Set<EfIettPrevisaoRevEfiepr> getEfIettPrevisaoRevEfieprs() {
169 return this.efIettPrevisaoRevEfieprs;
170 }
171
172 public void setEfIettPrevisaoRevEfieprs(Set<EfIettPrevisaoRevEfiepr> efIettPrevisaoRevEfieprs) {
173 this.efIettPrevisaoRevEfieprs = efIettPrevisaoRevEfieprs;
174 }
175
176 @OneToMany(fetch = FetchType.LAZY, mappedBy = "recursoRec")
177 public Set<HistoricoEfiecH> getHistoricoEfiecHs() {
178 return this.historicoEfiecHs;
179 }
180
181 public void setHistoricoEfiecHs(Set<HistoricoEfiecH> historicoEfiecHs) {
182 this.historicoEfiecHs = historicoEfiecHs;
183 }
184
185 @OneToMany(fetch = FetchType.LAZY, mappedBy = "recursoRec")
186 public Set<HistoricoEfiepH> getHistoricoEfiepHs() {
187 return this.historicoEfiepHs;
188 }
189
190 public void setHistoricoEfiepHs(Set<HistoricoEfiepH> historicoEfiepHs) {
191 this.historicoEfiepHs = historicoEfiepHs;
192 }
193
194 @OneToMany(fetch = FetchType.LAZY, mappedBy = "recursoRec")
195 public Set<FonteFon> getFonteFons() {
196 return this.fonteFons;
197 }
198
199 public void setFonteFons(Set<FonteFon> fonteFons) {
200 this.fonteFons = fonteFons;
201 }
202
203 }