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 javax.persistence.Column;
6   import javax.persistence.Entity;
7   import javax.persistence.GeneratedValue;
8   import javax.persistence.Id;
9   import javax.persistence.Table;
10  import org.hibernate.annotations.GenericGenerator;
11  
12  /**
13   * Estilo generated by hbm2java
14   */
15  @Entity
16  @Table(name = "TB_ESTILO")
17  public class Estilo implements java.io.Serializable {
18  
19    private static final long serialVersionUID = 5154661383706489652L;
20  
21    private Integer codEstilo;
22    private String nome;
23    private String descricao;
24  
25    public Estilo() {
26    }
27  
28    public Estilo(String nome, String descricao) {
29      this.nome = nome;
30      this.descricao = descricao;
31    }
32  
33    @GenericGenerator(name = "generator", strategy = "increment")
34    @Id
35    @GeneratedValue(generator = "generator")
36    @Column(name = "COD_ESTILO", nullable = false)
37    public Integer getCodEstilo() {
38      return this.codEstilo;
39    }
40  
41    public void setCodEstilo(Integer codEstilo) {
42      this.codEstilo = codEstilo;
43    }
44  
45    @Column(name = "NOME", length = 50)
46    public String getNome() {
47      return this.nome;
48    }
49  
50    public void setNome(String nome) {
51      this.nome = nome;
52    }
53  
54    @Column(name = "DESCRICAO", length = 50)
55    public String getDescricao() {
56      return this.descricao;
57    }
58  
59    public void setDescricao(String descricao) {
60      this.descricao = descricao;
61    }
62  
63  }