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   * TipoEnderecoCorrTpec generated by hbm2java
18   */
19  @Entity
20  @Table(name = "TB_TIPO_ENDERECO_CORR_TPEC")
21  public class TipoEnderecoCorrTpec implements java.io.Serializable {
22  
23    private Long codTpec;
24    private String descricaoTpec;
25    private Set<UsuarioUsu> usuarioUsus = new HashSet<UsuarioUsu>(0);
26  
27    public TipoEnderecoCorrTpec() {
28    }
29  
30    public TipoEnderecoCorrTpec(String descricaoTpec, Set<UsuarioUsu> usuarioUsus) {
31      this.descricaoTpec = descricaoTpec;
32      this.usuarioUsus = usuarioUsus;
33    }
34  
35    @GenericGenerator(name = "generator", strategy = "increment")
36    @Id
37    @GeneratedValue(generator = "generator")
38    @Column(name = "COD_TPEC", nullable = false)
39    public Long getCodTpec() {
40      return this.codTpec;
41    }
42  
43    public void setCodTpec(Long codTpec) {
44      this.codTpec = codTpec;
45    }
46  
47    @Column(name = "DESCRICAO_TPEC", length = 20)
48    public String getDescricaoTpec() {
49      return this.descricaoTpec;
50    }
51  
52    public void setDescricaoTpec(String descricaoTpec) {
53      this.descricaoTpec = descricaoTpec;
54    }
55  
56    @OneToMany(fetch = FetchType.LAZY, mappedBy = "tipoEnderecoCorrTpec")
57    public Set<UsuarioUsu> getUsuarioUsus() {
58      return this.usuarioUsus;
59    }
60  
61    public void setUsuarioUsus(Set<UsuarioUsu> usuarioUsus) {
62      this.usuarioUsus = usuarioUsus;
63    }
64  
65  }