View Javadoc

1   package ecar.pojo;
2   
3   // Generated Aug 13, 2009 2:24:15 PM by Hibernate Tools 3.2.0.CR1
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.JoinTable;
14  import javax.persistence.ManyToMany;
15  import javax.persistence.ManyToOne;
16  import javax.persistence.OneToMany;
17  import javax.persistence.Table;
18  import org.hibernate.annotations.Cascade;
19  import org.hibernate.annotations.CascadeType;
20  import org.hibernate.annotations.GenericGenerator;
21  
22  /**
23   * OrgaoOrg generated by hbm2java
24   */
25  @Entity
26  @Table(name = "TB_ORGAO_ORG")
27  public class OrgaoOrg implements java.io.Serializable {
28  
29    private static final long serialVersionUID = -4388990099847946693L;
30  
31    private Long codOrg;
32    private String siglaOrg;
33    private String descricaoOrg;
34    private String indAtivoOrg;
35    private Long codigoIdentOrg;
36    private PoderPod poderPod;
37    private Set<AcompReferenciaAref> acompReferenciaArefs = new HashSet<AcompReferenciaAref>(0);
38    private Set<UsuarioUsu> usuarioUsus = new HashSet<UsuarioUsu>(0);
39    private Set<ItemEstruturaIett> itemEstruturaIettsByCodOrgaoResponsavel1Iett = new HashSet<ItemEstruturaIett>(0);
40    private Set<ItemEstruturaIettPPA> itemEstruturaIettsByCodOrgaoResponsavel1IettPPA = new HashSet<ItemEstruturaIettPPA>(0);
41    private Set<ItemEstruturaIett> itemEstruturaIettsByCodOrgaoResponsavel2Iett = new HashSet<ItemEstruturaIett>(0);
42    private Set<UnidadeOrcamentariaUO> unidadeOrcamentariaUO = new HashSet<UnidadeOrcamentariaUO>(0);
43    private Set<RegDemandaRegd> regDemandaRegds = new HashSet<RegDemandaRegd>(0);
44    private Set<ItemEstruturarevisaoIettrev> itemEstruturarevisaoIettrevsByCodorgaoresponsavel2Iettrev = new HashSet<ItemEstruturarevisaoIettrev>(0);
45    private Set<ItemEstruturarevisaoIettrev> itemEstruturarevisaoIettrevsByCodorgaoresponsavel1Iettrev = new HashSet<ItemEstruturarevisaoIettrev>(0);
46    private Set<HistoricoIettH> historicoIettH1s = new HashSet<HistoricoIettH>(0);
47    private Set<HistoricoIettH> historicoIettH2s = new HashSet<HistoricoIettH>(0);
48    private Set<OrgaoPeriodoExercicioOrgPerExe> orgaoPeriodoExercicioOrgPerexes = new HashSet<OrgaoPeriodoExercicioOrgPerExe>(0);
49  
50    public OrgaoOrg() {
51    }
52  
53    public OrgaoOrg(String siglaOrg, String descricaoOrg, String indAtivoOrg, Long codigoIdentOrg, PoderPod poderPod, Set<AcompReferenciaAref> acompReferenciaArefs, Set<UsuarioUsu> usuarioUsus, Set<ItemEstruturaIett> itemEstruturaIettsByCodOrgaoResponsavel1Iett, Set<ItemEstruturaIettPPA> itemEstruturaIettsByCodOrgaoResponsavel1IettPPA, Set<ItemEstruturaIett> itemEstruturaIettsByCodOrgaoResponsavel2Iett, Set<UnidadeOrcamentariaUO> unidadeOrcamentariaUO, Set<RegDemandaRegd> regDemandaRegds, Set<ItemEstruturarevisaoIettrev> itemEstruturarevisaoIettrevsByCodorgaoresponsavel2Iettrev, Set<ItemEstruturarevisaoIettrev> itemEstruturarevisaoIettrevsByCodorgaoresponsavel1Iettrev, Set<HistoricoIettH> historicoIettH1s, Set<HistoricoIettH> historicoIettH2s, Set<OrgaoPeriodoExercicioOrgPerExe> orgaoPeriodoExercicioOrgPerexes) {
54      this.siglaOrg = siglaOrg;
55      this.descricaoOrg = descricaoOrg;
56      this.indAtivoOrg = indAtivoOrg;
57      this.codigoIdentOrg = codigoIdentOrg;
58      this.poderPod = poderPod;
59      this.acompReferenciaArefs = acompReferenciaArefs;
60      this.usuarioUsus = usuarioUsus;
61      this.itemEstruturaIettsByCodOrgaoResponsavel1Iett = itemEstruturaIettsByCodOrgaoResponsavel1Iett;
62      this.itemEstruturaIettsByCodOrgaoResponsavel1IettPPA = itemEstruturaIettsByCodOrgaoResponsavel1IettPPA;
63      this.itemEstruturaIettsByCodOrgaoResponsavel2Iett = itemEstruturaIettsByCodOrgaoResponsavel2Iett;
64      this.unidadeOrcamentariaUO = unidadeOrcamentariaUO;
65      this.regDemandaRegds = regDemandaRegds;
66      this.itemEstruturarevisaoIettrevsByCodorgaoresponsavel2Iettrev = itemEstruturarevisaoIettrevsByCodorgaoresponsavel2Iettrev;
67      this.itemEstruturarevisaoIettrevsByCodorgaoresponsavel1Iettrev = itemEstruturarevisaoIettrevsByCodorgaoresponsavel1Iettrev;
68      this.historicoIettH1s = historicoIettH1s;
69      this.historicoIettH2s = historicoIettH2s;
70      this.orgaoPeriodoExercicioOrgPerexes = orgaoPeriodoExercicioOrgPerexes;
71    }
72  
73    @GenericGenerator(name = "generator", strategy = "increment")
74    @Id
75    @GeneratedValue(generator = "generator")
76    @Column(name = "COD_ORG", nullable = false)
77    public Long getCodOrg() {
78      return this.codOrg;
79    }
80  
81    public void setCodOrg(Long codOrg) {
82      this.codOrg = codOrg;
83    }
84  
85    @Column(name = "SIGLA_ORG", length = 10)
86    public String getSiglaOrg() {
87      return this.siglaOrg;
88    }
89  
90    public void setSiglaOrg(String siglaOrg) {
91      this.siglaOrg = siglaOrg;
92    }
93  
94    @Column(name = "DESCRICAO_ORG", length = 2000)
95    public String getDescricaoOrg() {
96      return this.descricaoOrg;
97    }
98  
99    public void setDescricaoOrg(String descricaoOrg) {
100     this.descricaoOrg = descricaoOrg;
101   }
102 
103   @Column(name = "IND_ATIVO_ORG", length = 1)
104   public String getIndAtivoOrg() {
105     return this.indAtivoOrg;
106   }
107 
108   public void setIndAtivoOrg(String indAtivoOrg) {
109     this.indAtivoOrg = indAtivoOrg;
110   }
111 
112   @Column(name = "CODIGO_IDENT_ORG", length = 10)
113   public Long getCodigoIdentOrg() {
114     return this.codigoIdentOrg;
115   }
116 
117   public void setCodigoIdentOrg(Long codigoIdentOrg) {
118     this.codigoIdentOrg = codigoIdentOrg;
119   }
120 
121   @ManyToOne(fetch = FetchType.LAZY)
122   @JoinColumn(name = "COD_POD")
123   public PoderPod getPoderPod() {
124     return this.poderPod;
125   }
126 
127   public void setPoderPod(PoderPod poderPod) {
128     this.poderPod = poderPod;
129   }
130 
131   @OneToMany(fetch = FetchType.LAZY, mappedBy = "orgaoOrg")
132   public Set<AcompReferenciaAref> getAcompReferenciaArefs() {
133     return this.acompReferenciaArefs;
134   }
135 
136   public void setAcompReferenciaArefs(Set<AcompReferenciaAref> acompReferenciaArefs) {
137     this.acompReferenciaArefs = acompReferenciaArefs;
138   }
139 
140   @ManyToMany(fetch = FetchType.LAZY)
141   @JoinTable(name = "TB_USUARIO_ORGAO_USUORG", joinColumns = { @JoinColumn(name = "COD_ORG", nullable = false, updatable = false) }, inverseJoinColumns = { @JoinColumn(name = "COD_USU", nullable = false, updatable = false) })
142   @Cascade( { CascadeType.SAVE_UPDATE })
143   public Set<UsuarioUsu> getUsuarioUsus() {
144     return this.usuarioUsus;
145   }
146 
147   public void setUsuarioUsus(Set<UsuarioUsu> usuarioUsus) {
148     this.usuarioUsus = usuarioUsus;
149   }
150 
151   @OneToMany(fetch = FetchType.LAZY, mappedBy = "orgaoOrgByCodOrgaoResponsavel1Iett")
152   public Set<ItemEstruturaIett> getItemEstruturaIettsByCodOrgaoResponsavel1Iett() {
153     return this.itemEstruturaIettsByCodOrgaoResponsavel1Iett;
154   }
155 
156   public void setItemEstruturaIettsByCodOrgaoResponsavel1Iett(Set<ItemEstruturaIett> itemEstruturaIettsByCodOrgaoResponsavel1Iett) {
157     this.itemEstruturaIettsByCodOrgaoResponsavel1Iett = itemEstruturaIettsByCodOrgaoResponsavel1Iett;
158   }
159 
160   @OneToMany(fetch = FetchType.LAZY, mappedBy = "orgaoOrgByCodOrgaoResponsavel1Iett")
161   public Set<ItemEstruturaIettPPA> getItemEstruturaIettsByCodOrgaoResponsavel1IettPPA() {
162     return this.itemEstruturaIettsByCodOrgaoResponsavel1IettPPA;
163   }
164 
165   public void setItemEstruturaIettsByCodOrgaoResponsavel1IettPPA(Set<ItemEstruturaIettPPA> itemEstruturaIettsByCodOrgaoResponsavel1IettPPA) {
166     this.itemEstruturaIettsByCodOrgaoResponsavel1IettPPA = itemEstruturaIettsByCodOrgaoResponsavel1IettPPA;
167   }
168 
169   @OneToMany(fetch = FetchType.LAZY, mappedBy = "orgaoOrgByCodOrgaoResponsavel2Iett")
170   public Set<ItemEstruturaIett> getItemEstruturaIettsByCodOrgaoResponsavel2Iett() {
171     return this.itemEstruturaIettsByCodOrgaoResponsavel2Iett;
172   }
173 
174   public void setItemEstruturaIettsByCodOrgaoResponsavel2Iett(Set<ItemEstruturaIett> itemEstruturaIettsByCodOrgaoResponsavel2Iett) {
175     this.itemEstruturaIettsByCodOrgaoResponsavel2Iett = itemEstruturaIettsByCodOrgaoResponsavel2Iett;
176   }
177 
178   @OneToMany(fetch = FetchType.LAZY, mappedBy = "orgaoOrg")
179   public Set<UnidadeOrcamentariaUO> getUnidadeOrcamentariaUO() {
180     return this.unidadeOrcamentariaUO;
181   }
182 
183   public void setUnidadeOrcamentariaUO(Set<UnidadeOrcamentariaUO> unidadeOrcamentariaUO) {
184     this.unidadeOrcamentariaUO = unidadeOrcamentariaUO;
185   }
186 
187   @OneToMany(fetch = FetchType.LAZY)
188   public Set<RegDemandaRegd> getRegDemandaRegds() {
189     return this.regDemandaRegds;
190   }
191 
192   public void setRegDemandaRegds(Set<RegDemandaRegd> regDemandaRegds) {
193     this.regDemandaRegds = regDemandaRegds;
194   }
195 
196   @OneToMany(fetch = FetchType.LAZY, mappedBy = "orgaoOrgByCodOrgaoResponsavel2Iettrev")
197   public Set<ItemEstruturarevisaoIettrev> getItemEstruturarevisaoIettrevsByCodorgaoresponsavel2Iettrev() {
198     return this.itemEstruturarevisaoIettrevsByCodorgaoresponsavel2Iettrev;
199   }
200 
201   public void setItemEstruturarevisaoIettrevsByCodorgaoresponsavel2Iettrev(Set<ItemEstruturarevisaoIettrev> itemEstruturarevisaoIettrevsByCodorgaoresponsavel2Iettrev) {
202     this.itemEstruturarevisaoIettrevsByCodorgaoresponsavel2Iettrev = itemEstruturarevisaoIettrevsByCodorgaoresponsavel2Iettrev;
203   }
204 
205   @OneToMany(fetch = FetchType.LAZY, mappedBy = "orgaoOrgByCodOrgaoResponsavel1Iettrev")
206   public Set<ItemEstruturarevisaoIettrev> getItemEstruturarevisaoIettrevsByCodorgaoresponsavel1Iettrev() {
207     return this.itemEstruturarevisaoIettrevsByCodorgaoresponsavel1Iettrev;
208   }
209 
210   public void setItemEstruturarevisaoIettrevsByCodorgaoresponsavel1Iettrev(Set<ItemEstruturarevisaoIettrev> itemEstruturarevisaoIettrevsByCodorgaoresponsavel1Iettrev) {
211     this.itemEstruturarevisaoIettrevsByCodorgaoresponsavel1Iettrev = itemEstruturarevisaoIettrevsByCodorgaoresponsavel1Iettrev;
212   }
213 
214   @OneToMany(fetch = FetchType.LAZY, mappedBy = "orgaoOrgByCodOrgaoResponsavel1Iett")
215   public Set<HistoricoIettH> getHistoricoIettH1s() {
216     return this.historicoIettH1s;
217   }
218 
219   public void setHistoricoIettH1s(Set<HistoricoIettH> historicoIettH1s) {
220     this.historicoIettH1s = historicoIettH1s;
221   }
222 
223   @OneToMany(fetch = FetchType.LAZY, mappedBy = "orgaoOrgByCodOrgaoResponsavel2Iett")
224   public Set<HistoricoIettH> getHistoricoIettH2s() {
225     return this.historicoIettH2s;
226   }
227 
228   public void setHistoricoIettH2s(Set<HistoricoIettH> historicoIettH2s) {
229     this.historicoIettH2s = historicoIettH2s;
230   }
231 
232   @OneToMany(fetch = FetchType.EAGER, mappedBy = "orgaoOrg")
233   public Set<OrgaoPeriodoExercicioOrgPerExe> getOrgaoPeriodoExercicioOrgPerexes() {
234     return this.orgaoPeriodoExercicioOrgPerexes;
235   }
236 
237   public void setOrgaoPeriodoExercicioOrgPerexes(Set<OrgaoPeriodoExercicioOrgPerExe> orgaoPeriodoExercicioOrgPerexes) {
238     this.orgaoPeriodoExercicioOrgPerexes = orgaoPeriodoExercicioOrgPerexes;
239   }
240 
241 }