1 package ecar.pojo;
2
3
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
18
19 @Entity
20 @Table(name = "TB_SIT_DEMANDA_SITD")
21 public class SitDemandaSitd implements java.io.Serializable {
22
23 private Long codSitd;
24 private String descricaoSitd;
25 private String indConclusaoSitd;
26 private String indPrimeiraSituacaoSitd;
27 private Set<RegDemandaRegd> regDemandaRegds = new HashSet<RegDemandaRegd>(0);
28
29 public SitDemandaSitd() {
30 }
31
32 public SitDemandaSitd(String descricaoSitd, String indConclusaoSitd, String indPrimeiraSituacaoSitd, Set<RegDemandaRegd> regDemandaRegds) {
33 this.descricaoSitd = descricaoSitd;
34 this.indConclusaoSitd = indConclusaoSitd;
35 this.indPrimeiraSituacaoSitd = indPrimeiraSituacaoSitd;
36 this.regDemandaRegds = regDemandaRegds;
37 }
38
39 @GenericGenerator(name = "generator", strategy = "increment")
40 @Id
41 @GeneratedValue(generator = "generator")
42 @Column(name = "COD_SITD", nullable = false)
43 public Long getCodSitd() {
44 return this.codSitd;
45 }
46
47 public void setCodSitd(Long codSitd) {
48 this.codSitd = codSitd;
49 }
50
51 @Column(name = "DESCRICAO_SITD", length = 30)
52 public String getDescricaoSitd() {
53 return this.descricaoSitd;
54 }
55
56 public void setDescricaoSitd(String descricaoSitd) {
57 this.descricaoSitd = descricaoSitd;
58 }
59
60 @Column(name = "IND_CONCLUSAO_SITD", length = 1)
61 public String getIndConclusaoSitd() {
62 return this.indConclusaoSitd;
63 }
64
65 public void setIndConclusaoSitd(String indConclusaoSitd) {
66 this.indConclusaoSitd = indConclusaoSitd;
67 }
68
69 @Column(name = "IND_PRIMEIRA_SITUACAO_SITD", length = 1)
70 public String getIndPrimeiraSituacaoSitd() {
71 return this.indPrimeiraSituacaoSitd;
72 }
73
74 public void setIndPrimeiraSituacaoSitd(String indPrimeiraSituacaoSitd) {
75 this.indPrimeiraSituacaoSitd = indPrimeiraSituacaoSitd;
76 }
77
78 @OneToMany(fetch = FetchType.LAZY, mappedBy = "sitDemandaSitd")
79 public Set<RegDemandaRegd> getRegDemandaRegds() {
80 return this.regDemandaRegds;
81 }
82
83 public void setRegDemandaRegds(Set<RegDemandaRegd> regDemandaRegds) {
84 this.regDemandaRegds = regDemandaRegds;
85 }
86
87 }