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.OneToMany;
13  import javax.persistence.Table;
14  import org.hibernate.annotations.GenericGenerator;
15  
16  /**
17   * PeriodoExercicioPerExe generated by hbm2java
18   */
19  @Entity
20  @Table(name = "TB_PERIODO_EXERCICIO_PEREXE")
21  public class PeriodoExercicioPerExe implements java.io.Serializable {
22  
23    private Long codPerExe;
24    private String nomePerExe;
25    private Set<ExercicioExe> exercicioExes = new HashSet<ExercicioExe>(0);
26    private Set<PoderPeriodoExercicioPodPerExe> poderPeriodoExercicioPodPerexes = new HashSet<PoderPeriodoExercicioPodPerExe>(0);
27    private Set<OrgaoPeriodoExercicioOrgPerExe> orgaoPeriodoExercicioOrgPerexes = new HashSet<OrgaoPeriodoExercicioOrgPerExe>(0);
28    private Set<UnidadeOrcamentariaPeriodoExercicioUoPerExe> unidadeOrcamentariaPeriodoExercicioUoPerexes = new HashSet<UnidadeOrcamentariaPeriodoExercicioUoPerExe>(0);
29  
30    public PeriodoExercicioPerExe() {
31    }
32  
33    public PeriodoExercicioPerExe(String nomePerExe, Set<ExercicioExe> exercicioExes, Set<PoderPeriodoExercicioPodPerExe> poderPeriodoExercicioPodPerexes, Set<OrgaoPeriodoExercicioOrgPerExe> orgaoPeriodoExercicioOrgPerexes, Set<UnidadeOrcamentariaPeriodoExercicioUoPerExe> unidadeOrcamentariaPeriodoExercicioUoPerexes) {
34      this.nomePerExe = nomePerExe;
35      this.exercicioExes = exercicioExes;
36      this.poderPeriodoExercicioPodPerexes = poderPeriodoExercicioPodPerexes;
37      this.orgaoPeriodoExercicioOrgPerexes = orgaoPeriodoExercicioOrgPerexes;
38      this.unidadeOrcamentariaPeriodoExercicioUoPerexes = unidadeOrcamentariaPeriodoExercicioUoPerexes;
39    }
40  
41    @GenericGenerator(name = "generator", strategy = "increment")
42    @Id
43    @GeneratedValue(generator = "generator")
44    @Column(name = "COD_PEREXE", nullable = false)
45    public Long getCodPerExe() {
46      return this.codPerExe;
47    }
48  
49    public void setCodPerExe(Long codPerExe) {
50      this.codPerExe = codPerExe;
51    }
52  
53    @Column(name = "NOME_PEREXE", length = 100)
54    public String getNomePerExe() {
55      return this.nomePerExe;
56    }
57  
58    public void setNomePerExe(String nomePerExe) {
59      this.nomePerExe = nomePerExe;
60    }
61  
62    @OneToMany(fetch = FetchType.LAZY, mappedBy = "periodoExercicioPerExe")
63    public Set<ExercicioExe> getExercicioExes() {
64      return this.exercicioExes;
65    }
66  
67    public void setExercicioExes(Set<ExercicioExe> exercicioExes) {
68      this.exercicioExes = exercicioExes;
69    }
70  
71    @OneToMany(fetch = FetchType.LAZY, mappedBy = "periodoExercicioPerExe")
72    public Set<PoderPeriodoExercicioPodPerExe> getPoderPeriodoExercicioPodPerexes() {
73      return this.poderPeriodoExercicioPodPerexes;
74    }
75  
76    public void setPoderPeriodoExercicioPodPerexes(Set<PoderPeriodoExercicioPodPerExe> poderPeriodoExercicioPodPerexes) {
77      this.poderPeriodoExercicioPodPerexes = poderPeriodoExercicioPodPerexes;
78    }
79  
80    @OneToMany(fetch = FetchType.LAZY, mappedBy = "periodoExercicioPerExe")
81    public Set<OrgaoPeriodoExercicioOrgPerExe> getOrgaoPeriodoExercicioOrgPerexes() {
82      return this.orgaoPeriodoExercicioOrgPerexes;
83    }
84  
85    public void setOrgaoPeriodoExercicioOrgPerexes(Set<OrgaoPeriodoExercicioOrgPerExe> orgaoPeriodoExercicioOrgPerexes) {
86      this.orgaoPeriodoExercicioOrgPerexes = orgaoPeriodoExercicioOrgPerexes;
87    }
88  
89    @OneToMany(fetch = FetchType.LAZY, mappedBy = "periodoExercicioPerExe")
90    public Set<UnidadeOrcamentariaPeriodoExercicioUoPerExe> getUnidadeOrcamentariaPeriodoExercicioUoPerexes() {
91      return this.unidadeOrcamentariaPeriodoExercicioUoPerexes;
92    }
93  
94    public void setUnidadeOrcamentariaPeriodoExercicioUoPerexes(Set<UnidadeOrcamentariaPeriodoExercicioUoPerExe> unidadeOrcamentariaPeriodoExercicioUoPerexes) {
95      this.unidadeOrcamentariaPeriodoExercicioUoPerexes = unidadeOrcamentariaPeriodoExercicioUoPerexes;
96    }
97  
98  }