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.Date;
6   import java.util.HashSet;
7   import java.util.Set;
8   import javax.persistence.CascadeType;
9   import javax.persistence.Column;
10  import javax.persistence.Entity;
11  import javax.persistence.FetchType;
12  import javax.persistence.GeneratedValue;
13  import javax.persistence.Id;
14  import javax.persistence.JoinColumn;
15  import javax.persistence.ManyToOne;
16  import javax.persistence.OneToMany;
17  import javax.persistence.Table;
18  import javax.persistence.Temporal;
19  import javax.persistence.TemporalType;
20  import org.hibernate.annotations.Cascade;
21  import org.hibernate.annotations.GenericGenerator;
22  
23  /**
24   * PontoCriticoPtc generated by hbm2java
25   */
26  @Entity
27  @Table(name = "TB_PONTO_CRITICO_PTC")
28  public class PontoCriticoPtc implements java.io.Serializable {
29  
30    private static final long serialVersionUID = 8675132692655109234L;
31  
32    private Long codPtc;
33    private String indAtivoPtc;
34    private Date dataInclusaoPtc;
35    private Date dataSolucaoPtc;
36    private String descricaoSolucaoPtc;
37    private String indAmbitoInternoGovPtc;
38    private Date dataLimitePtc;
39    private Date dataIdentificacaoPtc;
40    private Date dataUltManutencaoPtc;
41    private String descricaoPtc;
42    private ItemEstruturaIett itemEstruturaIett;
43    private UsuarioUsu usuarioUsu;
44    private Set<PontocriticoCorPtccor> pontoCriticoCorPtccores = new HashSet<PontocriticoCorPtccor>(0);
45    private Set<ApontamentoApt> apontamentoApts = new HashSet<ApontamentoApt>(0);
46    private UsuarioUsu usuarioUsuInclusao;
47    private UsuarioUsu usuarioUsuByCodUsuUltManutPtc;
48    private SisAtributoSatb sisAtributoTipo;
49    private AcompRelatorioArel acompRelatorioArel;
50    private Set<HistoricoPtcH> historicoPtcHs = new HashSet<HistoricoPtcH>(0);
51    private String indExcluidoPtc;
52  
53    public PontoCriticoPtc() {
54    }
55  
56    public PontoCriticoPtc(String indAtivoPtc, Date dataInclusaoPtc, Date dataSolucaoPtc, String descricaoSolucaoPtc, String indAmbitoInternoGovPtc, Date dataLimitePtc, Date dataIdentificacaoPtc, Date dataUltManutencaoPtc, String descricaoPtc, ItemEstruturaIett itemEstruturaIett, UsuarioUsu usuarioUsu, Set<PontocriticoCorPtccor> pontoCriticoCorPtccores, Set<ApontamentoApt> apontamentoApts, UsuarioUsu usuarioUsuInclusao, UsuarioUsu usuarioUsuByCodUsuUltManutPtc, SisAtributoSatb sisAtributoTipo, AcompRelatorioArel acompRelatorioArel, Set<HistoricoPtcH> historicoPtcHs, String indExcluidoPtc) {
57      this.indAtivoPtc = indAtivoPtc;
58      this.dataInclusaoPtc = dataInclusaoPtc;
59      this.dataSolucaoPtc = dataSolucaoPtc;
60      this.descricaoSolucaoPtc = descricaoSolucaoPtc;
61      this.indAmbitoInternoGovPtc = indAmbitoInternoGovPtc;
62      this.dataLimitePtc = dataLimitePtc;
63      this.dataIdentificacaoPtc = dataIdentificacaoPtc;
64      this.dataUltManutencaoPtc = dataUltManutencaoPtc;
65      this.descricaoPtc = descricaoPtc;
66      this.itemEstruturaIett = itemEstruturaIett;
67      this.usuarioUsu = usuarioUsu;
68      this.pontoCriticoCorPtccores = pontoCriticoCorPtccores;
69      this.apontamentoApts = apontamentoApts;
70      this.usuarioUsuInclusao = usuarioUsuInclusao;
71      this.usuarioUsuByCodUsuUltManutPtc = usuarioUsuByCodUsuUltManutPtc;
72      this.sisAtributoTipo = sisAtributoTipo;
73      this.acompRelatorioArel = acompRelatorioArel;
74      this.historicoPtcHs = historicoPtcHs;
75      this.indExcluidoPtc = indExcluidoPtc;
76    }
77  
78    @GenericGenerator(name = "generator", strategy = "increment")
79    @Id
80    @GeneratedValue(generator = "generator")
81    @Column(name = "COD_PTC", nullable = false)
82    public Long getCodPtc() {
83      return this.codPtc;
84    }
85  
86    public void setCodPtc(Long codPtc) {
87      this.codPtc = codPtc;
88    }
89  
90    @Column(name = "IND_ATIVO_PTC", length = 1)
91    public String getIndAtivoPtc() {
92      return this.indAtivoPtc;
93    }
94  
95    public void setIndAtivoPtc(String indAtivoPtc) {
96      this.indAtivoPtc = indAtivoPtc;
97    }
98  
99    @Temporal(TemporalType.TIMESTAMP)
100   @Column(name = "DATA_INCLUSAO_PTC", length = 7)
101   public Date getDataInclusaoPtc() {
102     return this.dataInclusaoPtc;
103   }
104 
105   public void setDataInclusaoPtc(Date dataInclusaoPtc) {
106     this.dataInclusaoPtc = dataInclusaoPtc;
107   }
108 
109   @Temporal(TemporalType.TIMESTAMP)
110   @Column(name = "DATA_SOLUCAO_PTC", length = 7)
111   public Date getDataSolucaoPtc() {
112     return this.dataSolucaoPtc;
113   }
114 
115   public void setDataSolucaoPtc(Date dataSolucaoPtc) {
116     this.dataSolucaoPtc = dataSolucaoPtc;
117   }
118 
119   @Column(name = "DESCRICAO_SOLUCAO_PTC", length = 2000)
120   public String getDescricaoSolucaoPtc() {
121     return this.descricaoSolucaoPtc;
122   }
123 
124   public void setDescricaoSolucaoPtc(String descricaoSolucaoPtc) {
125     this.descricaoSolucaoPtc = descricaoSolucaoPtc;
126   }
127 
128   @Column(name = "IND_AMBITO_INTERNO_GOV_PTC", length = 1)
129   public String getIndAmbitoInternoGovPtc() {
130     return this.indAmbitoInternoGovPtc;
131   }
132 
133   public void setIndAmbitoInternoGovPtc(String indAmbitoInternoGovPtc) {
134     this.indAmbitoInternoGovPtc = indAmbitoInternoGovPtc;
135   }
136 
137   @Temporal(TemporalType.TIMESTAMP)
138   @Column(name = "DATA_LIMITE_PTC", length = 7)
139   public Date getDataLimitePtc() {
140     return this.dataLimitePtc;
141   }
142 
143   public void setDataLimitePtc(Date dataLimitePtc) {
144     this.dataLimitePtc = dataLimitePtc;
145   }
146 
147   @Temporal(TemporalType.TIMESTAMP)
148   @Column(name = "DATA_IDENTIFICACAO_PTC", length = 7)
149   public Date getDataIdentificacaoPtc() {
150     return this.dataIdentificacaoPtc;
151   }
152 
153   public void setDataIdentificacaoPtc(Date dataIdentificacaoPtc) {
154     this.dataIdentificacaoPtc = dataIdentificacaoPtc;
155   }
156 
157   @Temporal(TemporalType.TIMESTAMP)
158   @Column(name = "DATA_ULT_MANUT_PTC", length = 7)
159   public Date getDataUltManutencaoPtc() {
160     return this.dataUltManutencaoPtc;
161   }
162 
163   public void setDataUltManutencaoPtc(Date dataUltManutencaoPtc) {
164     this.dataUltManutencaoPtc = dataUltManutencaoPtc;
165   }
166 
167   @Column(name = "DESCRICAO_PTC", length = 2000)
168   public String getDescricaoPtc() {
169     return this.descricaoPtc;
170   }
171 
172   public void setDescricaoPtc(String descricaoPtc) {
173     this.descricaoPtc = descricaoPtc;
174   }
175 
176   @ManyToOne(fetch = FetchType.LAZY)
177   @JoinColumn(name = "COD_IETT")
178   public ItemEstruturaIett getItemEstruturaIett() {
179     return this.itemEstruturaIett;
180   }
181 
182   public void setItemEstruturaIett(ItemEstruturaIett itemEstruturaIett) {
183     this.itemEstruturaIett = itemEstruturaIett;
184   }
185 
186   @ManyToOne(fetch = FetchType.LAZY)
187   @JoinColumn(name = "COD_USU_RESPONSAVEL")
188   public UsuarioUsu getUsuarioUsu() {
189     return this.usuarioUsu;
190   }
191 
192   public void setUsuarioUsu(UsuarioUsu usuarioUsu) {
193     this.usuarioUsu = usuarioUsu;
194   }
195 
196   @OneToMany(cascade = CascadeType.REMOVE, fetch = FetchType.LAZY, mappedBy = "pontoCriticoPtc")
197   public Set<PontocriticoCorPtccor> getPontoCriticoCorPtccores() {
198     return this.pontoCriticoCorPtccores;
199   }
200 
201   public void setPontoCriticoCorPtccores(Set<PontocriticoCorPtccor> pontoCriticoCorPtccores) {
202     this.pontoCriticoCorPtccores = pontoCriticoCorPtccores;
203   }
204 
205   @OneToMany(fetch = FetchType.LAZY, mappedBy = "pontoCriticoPtc")
206   @Cascade( { org.hibernate.annotations.CascadeType.SAVE_UPDATE })
207   public Set<ApontamentoApt> getApontamentoApts() {
208     return this.apontamentoApts;
209   }
210 
211   public void setApontamentoApts(Set<ApontamentoApt> apontamentoApts) {
212     this.apontamentoApts = apontamentoApts;
213   }
214 
215   @ManyToOne(fetch = FetchType.LAZY)
216   @JoinColumn(name = "COD_USU_INCLUSAO")
217   public UsuarioUsu getUsuarioUsuInclusao() {
218     return this.usuarioUsuInclusao;
219   }
220 
221   public void setUsuarioUsuInclusao(UsuarioUsu usuarioUsuInclusao) {
222     this.usuarioUsuInclusao = usuarioUsuInclusao;
223   }
224 
225   @ManyToOne(fetch = FetchType.LAZY)
226   @JoinColumn(name = "COD_USU_ULT_MANUT_PTC")
227   public UsuarioUsu getUsuarioUsuByCodUsuUltManutPtc() {
228     return this.usuarioUsuByCodUsuUltManutPtc;
229   }
230 
231   public void setUsuarioUsuByCodUsuUltManutPtc(UsuarioUsu usuarioUsuByCodUsuUltManutPtc) {
232     this.usuarioUsuByCodUsuUltManutPtc = usuarioUsuByCodUsuUltManutPtc;
233   }
234 
235   @ManyToOne(fetch = FetchType.LAZY)
236   @JoinColumn(name = "cod_satb_tipo")
237   public SisAtributoSatb getSisAtributoTipo() {
238     return this.sisAtributoTipo;
239   }
240 
241   public void setSisAtributoTipo(SisAtributoSatb sisAtributoTipo) {
242     this.sisAtributoTipo = sisAtributoTipo;
243   }
244 
245   @ManyToOne(fetch = FetchType.LAZY)
246   @JoinColumn(name = "cod_arel")
247   public AcompRelatorioArel getAcompRelatorioArel() {
248     return this.acompRelatorioArel;
249   }
250 
251   public void setAcompRelatorioArel(AcompRelatorioArel acompRelatorioArel) {
252     this.acompRelatorioArel = acompRelatorioArel;
253   }
254 
255   @OneToMany(fetch = FetchType.LAZY, mappedBy = "pontoCriticoPtc")
256   public Set<HistoricoPtcH> getHistoricoPtcHs() {
257     return this.historicoPtcHs;
258   }
259 
260   public void setHistoricoPtcHs(Set<HistoricoPtcH> historicoPtcHs) {
261     this.historicoPtcHs = historicoPtcHs;
262   }
263 
264   @Column(name = "IND_EXCLUIDO_PTC", length = 1)
265   public String getIndExcluidoPtc() {
266     return this.indExcluidoPtc;
267   }
268 
269   public void setIndExcluidoPtc(String indExcluidoPtc) {
270     this.indExcluidoPtc = indExcluidoPtc;
271   }
272 
273 }