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   * IdiomaIdm generated by hbm2java
18   */
19  @Entity
20  @Table(name = "TB_IDIOMA_IDM")
21  public class IdiomaIdm implements java.io.Serializable {
22  
23    private Long codIdm;
24    private String nomeIdm;
25    private Set<TextosSiteTxt> textosSiteTxts = new HashSet<TextosSiteTxt>(0);
26    private Set<PaginaPgn> paginaPgns = new HashSet<PaginaPgn>(0);
27  
28    public IdiomaIdm() {
29    }
30  
31    public IdiomaIdm(String nomeIdm, Set<TextosSiteTxt> textosSiteTxts, Set<PaginaPgn> paginaPgns) {
32      this.nomeIdm = nomeIdm;
33      this.textosSiteTxts = textosSiteTxts;
34      this.paginaPgns = paginaPgns;
35    }
36  
37    @GenericGenerator(name = "generator", strategy = "increment")
38    @Id
39    @GeneratedValue(generator = "generator")
40    @Column(name = "COD_IDM", nullable = false)
41    public Long getCodIdm() {
42      return this.codIdm;
43    }
44  
45    public void setCodIdm(Long codIdm) {
46      this.codIdm = codIdm;
47    }
48  
49    @Column(name = "NOME_IDM", length = 20)
50    public String getNomeIdm() {
51      return this.nomeIdm;
52    }
53  
54    public void setNomeIdm(String nomeIdm) {
55      this.nomeIdm = nomeIdm;
56    }
57  
58    @OneToMany(fetch = FetchType.LAZY, mappedBy = "idiomaIdm")
59    public Set<TextosSiteTxt> getTextosSiteTxts() {
60      return this.textosSiteTxts;
61    }
62  
63    public void setTextosSiteTxts(Set<TextosSiteTxt> textosSiteTxts) {
64      this.textosSiteTxts = textosSiteTxts;
65    }
66  
67    @OneToMany(fetch = FetchType.LAZY, mappedBy = "idiomaIdm")
68    public Set<PaginaPgn> getPaginaPgns() {
69      return this.paginaPgns;
70    }
71  
72    public void setPaginaPgns(Set<PaginaPgn> paginaPgns) {
73      this.paginaPgns = paginaPgns;
74    }
75  
76  }