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.Date;
6   import java.util.HashSet;
7   import java.util.Set;
8   
9   import javax.persistence.Column;
10  import javax.persistence.Entity;
11  import javax.persistence.FetchType;
12  import javax.persistence.GeneratedValue;
13  import javax.persistence.Id;
14  import javax.persistence.OneToMany;
15  import javax.persistence.Table;
16  import javax.persistence.Temporal;
17  import javax.persistence.TemporalType;
18  
19  import org.hibernate.annotations.GenericGenerator;
20  
21  /**
22   * TipoParticipacaoTpp generated by hbm2java
23   */
24  @Entity
25  @Table(name = "TB_TIPO_PARTICIPACAO_TPP")
26  public class TipoParticipacaoTpp implements java.io.Serializable {
27  
28    private Long codTpp;
29    private String indAtivoTpp;
30    private Date dataInclusaoTpp;
31    private String descricaoTpp;
32    private Set<ItemEstrutEntidadeIette> itemEstrutEntidadeIettes = new HashSet<ItemEstrutEntidadeIette>(0);
33    private Set<HistoricoIetteH> historicoIetteHs = new HashSet<HistoricoIetteH>(0);
34  
35    public TipoParticipacaoTpp() {
36    }
37  
38    public TipoParticipacaoTpp(String indAtivoTpp, Date dataInclusaoTpp, String descricaoTpp, Set<ItemEstrutEntidadeIette> itemEstrutEntidadeIettes, Set<HistoricoIetteH> historicoIetteHs) {
39      this.indAtivoTpp = indAtivoTpp;
40      this.dataInclusaoTpp = dataInclusaoTpp;
41      this.descricaoTpp = descricaoTpp;
42      this.itemEstrutEntidadeIettes = itemEstrutEntidadeIettes;
43      this.historicoIetteHs = historicoIetteHs;
44    }
45  
46    @GenericGenerator(name = "generator", strategy = "increment")
47    @Id
48    @GeneratedValue(generator = "generator")
49    @Column(name = "COD_TPP", nullable = false)
50    public Long getCodTpp() {
51      return this.codTpp;
52    }
53  
54    public void setCodTpp(Long codTpp) {
55      this.codTpp = codTpp;
56    }
57  
58    @Column(name = "IND_ATIVO_TPP", length = 1)
59    public String getIndAtivoTpp() {
60      return this.indAtivoTpp;
61    }
62  
63    public void setIndAtivoTpp(String indAtivoTpp) {
64      this.indAtivoTpp = indAtivoTpp;
65    }
66  
67    @Temporal(TemporalType.TIMESTAMP)
68    @Column(name = "DATA_INCLUSAO_TPP", length = 7)
69    public Date getDataInclusaoTpp() {
70      return this.dataInclusaoTpp;
71    }
72  
73    public void setDataInclusaoTpp(Date dataInclusaoTpp) {
74      this.dataInclusaoTpp = dataInclusaoTpp;
75    }
76  
77    @Column(name = "DESCRICAO_TPP", length = 30)
78    public String getDescricaoTpp() {
79      return this.descricaoTpp;
80    }
81  
82    public void setDescricaoTpp(String descricaoTpp) {
83      this.descricaoTpp = descricaoTpp;
84    }
85  
86    @OneToMany(fetch = FetchType.LAZY, mappedBy = "tipoParticipacaoTpp")
87    public Set<ItemEstrutEntidadeIette> getItemEstrutEntidadeIettes() {
88      return this.itemEstrutEntidadeIettes;
89    }
90  
91    public void setItemEstrutEntidadeIettes(Set<ItemEstrutEntidadeIette> itemEstrutEntidadeIettes) {
92      this.itemEstrutEntidadeIettes = itemEstrutEntidadeIettes;
93    }
94  
95    @OneToMany(fetch = FetchType.LAZY, mappedBy = "tipoParticipacaoTpp")
96    public Set<HistoricoIetteH> getHistoricoIetteHs() {
97      return this.historicoIetteHs;
98    }
99  
100   public void setHistoricoIetteHs(Set<HistoricoIetteH> historicoIetteHs) {
101     this.historicoIetteHs = historicoIetteHs;
102   }
103 
104 }