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.JoinColumn;
13  import javax.persistence.JoinTable;
14  import javax.persistence.ManyToMany;
15  import javax.persistence.OneToMany;
16  import javax.persistence.Table;
17  import org.hibernate.annotations.Cascade;
18  import org.hibernate.annotations.CascadeType;
19  import org.hibernate.annotations.GenericGenerator;
20  
21  /**
22   * SituacaoSit generated by hbm2java
23   */
24  @Entity
25  @Table(name = "TB_SITUACAO_SIT")
26  public class SituacaoSit implements java.io.Serializable {
27  
28    private Long codSit;
29    private String indComentarioSit;
30    private String indConcluidoSit;
31    private String comentarioSit;
32    private String descricaoSit;
33    private String indMetaFisicaSit;
34    private String indSemAcompanhamentoSit;
35    private Set<TipoFuncAcompTpfa> situacaoTpFuncAcmpSitfas = new HashSet<TipoFuncAcompTpfa>(0);
36    private Set<EstruturaEtt> estruturaSituacaoEtts = new HashSet<EstruturaEtt>(0);
37    private Set<AcompRelatorioArel> acompRelatorioArels = new HashSet<AcompRelatorioArel>(0);
38    private Set<AcompRealFisicoArf> acompRealFisicoArfs = new HashSet<AcompRealFisicoArf>(0);
39    private Set<ItemEstruturaIett> itemEstruturaIetts = new HashSet<ItemEstruturaIett>(0);
40    private Set<HistoricoIettH> historicoIettHs = new HashSet<HistoricoIettH>(0);
41  
42    public SituacaoSit() {
43    }
44  
45    public SituacaoSit(String indComentarioSit, String indConcluidoSit, String comentarioSit, String descricaoSit, String indMetaFisicaSit, String indSemAcompanhamentoSit, Set<TipoFuncAcompTpfa> situacaoTpFuncAcmpSitfas, Set<EstruturaEtt> estruturaSituacaoEtts, Set<AcompRelatorioArel> acompRelatorioArels, Set<AcompRealFisicoArf> acompRealFisicoArfs, Set<ItemEstruturaIett> itemEstruturaIetts, Set<HistoricoIettH> historicoIettHs) {
46      this.indComentarioSit = indComentarioSit;
47      this.indConcluidoSit = indConcluidoSit;
48      this.comentarioSit = comentarioSit;
49      this.descricaoSit = descricaoSit;
50      this.indMetaFisicaSit = indMetaFisicaSit;
51      this.indSemAcompanhamentoSit = indSemAcompanhamentoSit;
52      this.situacaoTpFuncAcmpSitfas = situacaoTpFuncAcmpSitfas;
53      this.estruturaSituacaoEtts = estruturaSituacaoEtts;
54      this.acompRelatorioArels = acompRelatorioArels;
55      this.acompRealFisicoArfs = acompRealFisicoArfs;
56      this.itemEstruturaIetts = itemEstruturaIetts;
57      this.historicoIettHs = historicoIettHs;
58    }
59  
60    @GenericGenerator(name = "generator", strategy = "increment")
61    @Id
62    @GeneratedValue(generator = "generator")
63    @Column(name = "COD_SIT", nullable = false)
64    public Long getCodSit() {
65      return this.codSit;
66    }
67  
68    public void setCodSit(Long codSit) {
69      this.codSit = codSit;
70    }
71  
72    @Column(name = "IND_COMENTARIO_SIT", length = 1)
73    public String getIndComentarioSit() {
74      return this.indComentarioSit;
75    }
76  
77    public void setIndComentarioSit(String indComentarioSit) {
78      this.indComentarioSit = indComentarioSit;
79    }
80  
81    @Column(name = "IND_CONCLUIDO_SIT", length = 1)
82    public String getIndConcluidoSit() {
83      return this.indConcluidoSit;
84    }
85  
86    public void setIndConcluidoSit(String indConcluidoSit) {
87      this.indConcluidoSit = indConcluidoSit;
88    }
89  
90    @Column(name = "COMENTARIO_SIT", length = 2000)
91    public String getComentarioSit() {
92      return this.comentarioSit;
93    }
94  
95    public void setComentarioSit(String comentarioSit) {
96      this.comentarioSit = comentarioSit;
97    }
98  
99    @Column(name = "DESCRICAO_SIT", length = 50)
100   public String getDescricaoSit() {
101     return this.descricaoSit;
102   }
103 
104   public void setDescricaoSit(String descricaoSit) {
105     this.descricaoSit = descricaoSit;
106   }
107 
108   @Column(name = "IND_METAFISICA_SIT", length = 1)
109   public String getIndMetaFisicaSit() {
110     return this.indMetaFisicaSit;
111   }
112 
113   public void setIndMetaFisicaSit(String indMetaFisicaSit) {
114     this.indMetaFisicaSit = indMetaFisicaSit;
115   }
116 
117   @Column(name = "IND_SEM_ACOMPANHAMENTO_SIT", length = 1)
118   public String getIndSemAcompanhamentoSit() {
119     return this.indSemAcompanhamentoSit;
120   }
121 
122   public void setIndSemAcompanhamentoSit(String indSemAcompanhamentoSit) {
123     this.indSemAcompanhamentoSit = indSemAcompanhamentoSit;
124   }
125 
126   @ManyToMany(fetch = FetchType.LAZY)
127   @JoinTable(name = "TB_SITUACAO_TP_FUNC_ACMP_SITFA", joinColumns = { @JoinColumn(name = "COD_SIT", nullable = false, updatable = false) }, inverseJoinColumns = { @JoinColumn(name = "COD_TPFA", nullable = false, updatable = false) })
128   @Cascade( { CascadeType.SAVE_UPDATE })
129   public Set<TipoFuncAcompTpfa> getSituacaoTpFuncAcmpSitfas() {
130     return this.situacaoTpFuncAcmpSitfas;
131   }
132 
133   public void setSituacaoTpFuncAcmpSitfas(Set<TipoFuncAcompTpfa> situacaoTpFuncAcmpSitfas) {
134     this.situacaoTpFuncAcmpSitfas = situacaoTpFuncAcmpSitfas;
135   }
136 
137   @ManyToMany(fetch = FetchType.LAZY)
138   @JoinTable(name = "TB_ESTRUTURA_SITUACAO_ETTS", joinColumns = { @JoinColumn(name = "COD_SIT", nullable = false, updatable = false) }, inverseJoinColumns = { @JoinColumn(name = "COD_ETT", nullable = false, updatable = false) })
139   @Cascade( { CascadeType.SAVE_UPDATE })
140   public Set<EstruturaEtt> getEstruturaSituacaoEtts() {
141     return this.estruturaSituacaoEtts;
142   }
143 
144   public void setEstruturaSituacaoEtts(Set<EstruturaEtt> estruturaSituacaoEtts) {
145     this.estruturaSituacaoEtts = estruturaSituacaoEtts;
146   }
147 
148   @OneToMany(fetch = FetchType.LAZY, mappedBy = "situacaoSit")
149   public Set<AcompRelatorioArel> getAcompRelatorioArels() {
150     return this.acompRelatorioArels;
151   }
152 
153   public void setAcompRelatorioArels(Set<AcompRelatorioArel> acompRelatorioArels) {
154     this.acompRelatorioArels = acompRelatorioArels;
155   }
156 
157   @OneToMany(fetch = FetchType.LAZY, mappedBy = "situacaoSit")
158   public Set<AcompRealFisicoArf> getAcompRealFisicoArfs() {
159     return this.acompRealFisicoArfs;
160   }
161 
162   public void setAcompRealFisicoArfs(Set<AcompRealFisicoArf> acompRealFisicoArfs) {
163     this.acompRealFisicoArfs = acompRealFisicoArfs;
164   }
165 
166   @OneToMany(fetch = FetchType.LAZY, mappedBy = "situacaoSit")
167   public Set<ItemEstruturaIett> getItemEstruturaIetts() {
168     return this.itemEstruturaIetts;
169   }
170 
171   public void setItemEstruturaIetts(Set<ItemEstruturaIett> itemEstruturaIetts) {
172     this.itemEstruturaIetts = itemEstruturaIetts;
173   }
174 
175   @OneToMany(fetch = FetchType.LAZY, mappedBy = "situacaoSit")
176   public Set<HistoricoIettH> getHistoricoIettHs() {
177     return this.historicoIettHs;
178   }
179 
180   public void setHistoricoIettHs(Set<HistoricoIettH> historicoIettHs) {
181     this.historicoIettHs = historicoIettHs;
182   }
183 
184 }