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   * SegmentoItemFonteSgtif generated by hbm2java
18   */
19  @Entity
20  @Table(name = "TB_SEGMENTO_ITEM_FONTE_SGTIF")
21  public class SegmentoItemFonteSgtif implements java.io.Serializable {
22  
23    private Long codSgtif;
24    private String descricaoSgtif;
25    private Set<SegmentoItemSgti> segmentoItemSgtis = new HashSet<SegmentoItemSgti>(0);
26  
27    public SegmentoItemFonteSgtif() {
28    }
29  
30    public SegmentoItemFonteSgtif(String descricaoSgtif, Set<SegmentoItemSgti> segmentoItemSgtis) {
31      this.descricaoSgtif = descricaoSgtif;
32      this.segmentoItemSgtis = segmentoItemSgtis;
33    }
34  
35    @GenericGenerator(name = "generator", strategy = "increment")
36    @Id
37    @GeneratedValue(generator = "generator")
38    @Column(name = "COD_SGTIF", nullable = false)
39    public Long getCodSgtif() {
40      return this.codSgtif;
41    }
42  
43    public void setCodSgtif(Long codSgtif) {
44      this.codSgtif = codSgtif;
45    }
46  
47    @Column(name = "DESCRICAO_SGTIF", length = 20)
48    public String getDescricaoSgtif() {
49      return this.descricaoSgtif;
50    }
51  
52    public void setDescricaoSgtif(String descricaoSgtif) {
53      this.descricaoSgtif = descricaoSgtif;
54    }
55  
56    @OneToMany(fetch = FetchType.LAZY, mappedBy = "segmentoItemFonteSgtif")
57    public Set<SegmentoItemSgti> getSegmentoItemSgtis() {
58      return this.segmentoItemSgtis;
59    }
60  
61    public void setSegmentoItemSgtis(Set<SegmentoItemSgti> segmentoItemSgtis) {
62      this.segmentoItemSgtis = segmentoItemSgtis;
63    }
64  
65  }