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   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   * SisTipoOrdenacaoSto generated by hbm2java
21   */
22  @Entity
23  @Table(name = "TB_SIS_TIPO_ORDENACAO_STO")
24  public class SisTipoOrdenacaoSto implements java.io.Serializable {
25  
26    private Long codSto;
27    private String stringSqlSto;
28    private String descricaoSto;
29    private String indAtivoSto;
30    private Date dataInclusaoSto;
31    private Set<SisGrupoAtributoSga> sisGrupoAtributoSgas = new HashSet<SisGrupoAtributoSga>(0);
32  
33    public SisTipoOrdenacaoSto() {
34    }
35  
36    public SisTipoOrdenacaoSto(String stringSqlSto, String descricaoSto, String indAtivoSto, Date dataInclusaoSto, Set<SisGrupoAtributoSga> sisGrupoAtributoSgas) {
37      this.stringSqlSto = stringSqlSto;
38      this.descricaoSto = descricaoSto;
39      this.indAtivoSto = indAtivoSto;
40      this.dataInclusaoSto = dataInclusaoSto;
41      this.sisGrupoAtributoSgas = sisGrupoAtributoSgas;
42    }
43  
44    @GenericGenerator(name = "generator", strategy = "increment")
45    @Id
46    @GeneratedValue(generator = "generator")
47    @Column(name = "COD_STO", nullable = false)
48    public Long getCodSto() {
49      return this.codSto;
50    }
51  
52    public void setCodSto(Long codSto) {
53      this.codSto = codSto;
54    }
55  
56    @Column(name = "STRING_SQL_STO", length = 200)
57    public String getStringSqlSto() {
58      return this.stringSqlSto;
59    }
60  
61    public void setStringSqlSto(String stringSqlSto) {
62      this.stringSqlSto = stringSqlSto;
63    }
64  
65    @Column(name = "DESCRICAO_STO", length = 40)
66    public String getDescricaoSto() {
67      return this.descricaoSto;
68    }
69  
70    public void setDescricaoSto(String descricaoSto) {
71      this.descricaoSto = descricaoSto;
72    }
73  
74    @Column(name = "IND_ATIVO_STO", length = 1)
75    public String getIndAtivoSto() {
76      return this.indAtivoSto;
77    }
78  
79    public void setIndAtivoSto(String indAtivoSto) {
80      this.indAtivoSto = indAtivoSto;
81    }
82  
83    @Temporal(TemporalType.TIMESTAMP)
84    @Column(name = "DATA_INCLUSAO_STO", length = 7)
85    public Date getDataInclusaoSto() {
86      return this.dataInclusaoSto;
87    }
88  
89    public void setDataInclusaoSto(Date dataInclusaoSto) {
90      this.dataInclusaoSto = dataInclusaoSto;
91    }
92  
93    @OneToMany(fetch = FetchType.LAZY, mappedBy = "sisTipoOrdenacaoSto")
94    public Set<SisGrupoAtributoSga> getSisGrupoAtributoSgas() {
95      return this.sisGrupoAtributoSgas;
96    }
97  
98    public void setSisGrupoAtributoSgas(Set<SisGrupoAtributoSga> sisGrupoAtributoSgas) {
99      this.sisGrupoAtributoSgas = sisGrupoAtributoSgas;
100   }
101 
102 }