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.Date;
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.ManyToOne;
14  import javax.persistence.Table;
15  import javax.persistence.Temporal;
16  import javax.persistence.TemporalType;
17  import org.hibernate.annotations.GenericGenerator;
18  
19  /**
20   * HistoricoIettfH generated by hbm2java
21   */
22  @Entity
23  @Table(name = "TB_HISTORICO_IETTFH")
24  public class HistoricoIettfH implements java.io.Serializable {
25  
26    private Long codIettfH;
27    private String indAtivoIettf;
28    private Date dataInclusaoIettf;
29    private Double qtdPrevistaIettf;
30    private Date dataUltManutencao;
31    private ExercicioExe exercicioExe;
32    private ItemEstrtIndResulIettr itemEstrtIndResulIettr;
33    private UsuarioUsu usuManutencao;
34    private HistoricoMaster historicoMaster;
35  
36    public HistoricoIettfH() {
37    }
38  
39    public HistoricoIettfH(String indAtivoIettf, Date dataInclusaoIettf, Double qtdPrevistaIettf, Date dataUltManutencao, ExercicioExe exercicioExe, ItemEstrtIndResulIettr itemEstrtIndResulIettr, UsuarioUsu usuManutencao, HistoricoMaster historicoMaster) {
40      this.indAtivoIettf = indAtivoIettf;
41      this.dataInclusaoIettf = dataInclusaoIettf;
42      this.qtdPrevistaIettf = qtdPrevistaIettf;
43      this.dataUltManutencao = dataUltManutencao;
44      this.exercicioExe = exercicioExe;
45      this.itemEstrtIndResulIettr = itemEstrtIndResulIettr;
46      this.usuManutencao = usuManutencao;
47      this.historicoMaster = historicoMaster;
48    }
49  
50    @GenericGenerator(name = "generator", strategy = "increment")
51    @Id
52    @GeneratedValue(generator = "generator")
53    @Column(name = "COD_IETTFH", nullable = false)
54    public Long getCodIettfH() {
55      return this.codIettfH;
56    }
57  
58    public void setCodIettfH(Long codIettfH) {
59      this.codIettfH = codIettfH;
60    }
61  
62    @Column(name = "IND_ATIVO_IETTF", length = 1)
63    public String getIndAtivoIettf() {
64      return this.indAtivoIettf;
65    }
66  
67    public void setIndAtivoIettf(String indAtivoIettf) {
68      this.indAtivoIettf = indAtivoIettf;
69    }
70  
71    @Temporal(TemporalType.TIMESTAMP)
72    @Column(name = "DATA_INCLUSAO_IETTF", length = 7)
73    public Date getDataInclusaoIettf() {
74      return this.dataInclusaoIettf;
75    }
76  
77    public void setDataInclusaoIettf(Date dataInclusaoIettf) {
78      this.dataInclusaoIettf = dataInclusaoIettf;
79    }
80  
81    @Column(name = "QTD_PREVISTA_IETTF", length = 14)
82    public Double getQtdPrevistaIettf() {
83      return this.qtdPrevistaIettf;
84    }
85  
86    public void setQtdPrevistaIettf(Double qtdPrevistaIettf) {
87      this.qtdPrevistaIettf = qtdPrevistaIettf;
88    }
89  
90    @Column(name = "DATA_ULT_MANUTENCAO", length = 7)
91    public Date getDataUltManutencao() {
92      return this.dataUltManutencao;
93    }
94  
95    public void setDataUltManutencao(Date dataUltManutencao) {
96      this.dataUltManutencao = dataUltManutencao;
97    }
98  
99    @ManyToOne(fetch = FetchType.LAZY)
100   @JoinColumn(name = "cod_exe")
101   public ExercicioExe getExercicioExe() {
102     return this.exercicioExe;
103   }
104 
105   public void setExercicioExe(ExercicioExe exercicioExe) {
106     this.exercicioExe = exercicioExe;
107   }
108 
109   @ManyToOne(fetch = FetchType.LAZY)
110   @JoinColumn(name = "cod_iettir")
111   public ItemEstrtIndResulIettr getItemEstrtIndResulIettr() {
112     return this.itemEstrtIndResulIettr;
113   }
114 
115   public void setItemEstrtIndResulIettr(ItemEstrtIndResulIettr itemEstrtIndResulIettr) {
116     this.itemEstrtIndResulIettr = itemEstrtIndResulIettr;
117   }
118 
119   @ManyToOne(fetch = FetchType.LAZY)
120   @JoinColumn(name = "COD_USU_MANUTENCAO")
121   public UsuarioUsu getUsuManutencao() {
122     return this.usuManutencao;
123   }
124 
125   public void setUsuManutencao(UsuarioUsu usuManutencao) {
126     this.usuManutencao = usuManutencao;
127   }
128 
129   @ManyToOne(fetch = FetchType.LAZY)
130   @JoinColumn(name = "COD_MAH")
131   public HistoricoMaster getHistoricoMaster() {
132     return this.historicoMaster;
133   }
134 
135   public void setHistoricoMaster(HistoricoMaster historicoMaster) {
136     this.historicoMaster = historicoMaster;
137   }
138 
139 }