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