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   * SegmentoLeiauteSgtl generated by hbm2java
18   */
19  @Entity
20  @Table(name = "TB_SEGMENTO_LEIAUTE_SGTL")
21  public class SegmentoLeiauteSgtl implements java.io.Serializable {
22  
23    private Long codSgtl;
24    private String linkSgtl;
25    private String descricaoSgtl;
26    private Set<SegmentoSgt> segmentoSgts = new HashSet<SegmentoSgt>(0);
27  
28    public SegmentoLeiauteSgtl() {
29    }
30  
31    public SegmentoLeiauteSgtl(String linkSgtl, String descricaoSgtl, Set<SegmentoSgt> segmentoSgts) {
32      this.linkSgtl = linkSgtl;
33      this.descricaoSgtl = descricaoSgtl;
34      this.segmentoSgts = segmentoSgts;
35    }
36  
37    @GenericGenerator(name = "generator", strategy = "increment")
38    @Id
39    @GeneratedValue(generator = "generator")
40    @Column(name = "COD_SGTL", nullable = false)
41    public Long getCodSgtl() {
42      return this.codSgtl;
43    }
44  
45    public void setCodSgtl(Long codSgtl) {
46      this.codSgtl = codSgtl;
47    }
48  
49    @Column(name = "LINK_SGTL", length = 100)
50    public String getLinkSgtl() {
51      return this.linkSgtl;
52    }
53  
54    public void setLinkSgtl(String linkSgtl) {
55      this.linkSgtl = linkSgtl;
56    }
57  
58    @Column(name = "DESCRICAO_SGTL", length = 30)
59    public String getDescricaoSgtl() {
60      return this.descricaoSgtl;
61    }
62  
63    public void setDescricaoSgtl(String descricaoSgtl) {
64      this.descricaoSgtl = descricaoSgtl;
65    }
66  
67    @OneToMany(fetch = FetchType.LAZY, mappedBy = "segmentoLeiauteSgtl")
68    public Set<SegmentoSgt> getSegmentoSgts() {
69      return this.segmentoSgts;
70    }
71  
72    public void setSegmentoSgts(Set<SegmentoSgt> segmentoSgts) {
73      this.segmentoSgts = segmentoSgts;
74    }
75  
76  }