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   * PoderPod generated by hbm2java
18   */
19  @Entity
20  @Table(name = "TB_PODER_POD")
21  public class PoderPod implements java.io.Serializable {
22  
23    private Long codPod;
24    private String siglaPod;
25    private String nomePod;
26    private String indAtivoPod;
27    private Set<OrgaoOrg> orgaoOrgs = new HashSet<OrgaoOrg>(0);
28    private Set<PoderPeriodoExercicioPodPerExe> poderPeriodoExercicioPodPerexes = new HashSet<PoderPeriodoExercicioPodPerExe>(0);
29  
30    public PoderPod() {
31    }
32  
33    public PoderPod(String siglaPod, String nomePod, String indAtivoPod, Set<OrgaoOrg> orgaoOrgs, Set<PoderPeriodoExercicioPodPerExe> poderPeriodoExercicioPodPerexes) {
34      this.siglaPod = siglaPod;
35      this.nomePod = nomePod;
36      this.indAtivoPod = indAtivoPod;
37      this.orgaoOrgs = orgaoOrgs;
38      this.poderPeriodoExercicioPodPerexes = poderPeriodoExercicioPodPerexes;
39    }
40  
41    @GenericGenerator(name = "generator", strategy = "increment")
42    @Id
43    @GeneratedValue(generator = "generator")
44    @Column(name = "COD_POD", nullable = false)
45    public Long getCodPod() {
46      return this.codPod;
47    }
48  
49    public void setCodPod(Long codPod) {
50      this.codPod = codPod;
51    }
52  
53    @Column(name = "SIGLA_POD", length = 5)
54    public String getSiglaPod() {
55      return this.siglaPod;
56    }
57  
58    public void setSiglaPod(String siglaPod) {
59      this.siglaPod = siglaPod;
60    }
61  
62    @Column(name = "NOME_POD", length = 100)
63    public String getNomePod() {
64      return this.nomePod;
65    }
66  
67    public void setNomePod(String nomePod) {
68      this.nomePod = nomePod;
69    }
70  
71    @Column(name = "IND_ATIVO_POD", length = 1)
72    public String getIndAtivoPod() {
73      return this.indAtivoPod;
74    }
75  
76    public void setIndAtivoPod(String indAtivoPod) {
77      this.indAtivoPod = indAtivoPod;
78    }
79  
80    @OneToMany(fetch = FetchType.LAZY, mappedBy = "poderPod")
81    public Set<OrgaoOrg> getOrgaoOrgs() {
82      return this.orgaoOrgs;
83    }
84  
85    public void setOrgaoOrgs(Set<OrgaoOrg> orgaoOrgs) {
86      this.orgaoOrgs = orgaoOrgs;
87    }
88  
89    @OneToMany(fetch = FetchType.LAZY, mappedBy = "poderPod")
90    public Set<PoderPeriodoExercicioPodPerExe> getPoderPeriodoExercicioPodPerexes() {
91      return this.poderPeriodoExercicioPodPerexes;
92    }
93  
94    public void setPoderPeriodoExercicioPodPerexes(Set<PoderPeriodoExercicioPodPerExe> poderPeriodoExercicioPodPerexes) {
95      this.poderPeriodoExercicioPodPerexes = poderPeriodoExercicioPodPerexes;
96    }
97  
98  }