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 javax.persistence.Column;
7   import javax.persistence.Entity;
8   import javax.persistence.FetchType;
9   import javax.persistence.GeneratedValue;
10  import javax.persistence.Id;
11  import javax.persistence.JoinColumn;
12  import javax.persistence.ManyToOne;
13  import javax.persistence.Table;
14  import javax.persistence.Temporal;
15  import javax.persistence.TemporalType;
16  import org.hibernate.annotations.GenericGenerator;
17  
18  /**
19   * HistoricoIettutfaH generated by hbm2java
20   */
21  @Entity
22  @Table(name = "TB_HISTORICO_IETTUTFAH")
23  public class HistoricoIettutfaH implements java.io.Serializable {
24  
25    private Long codIettutfaH;
26    private ItemEstruturaIett itemEstruturaIett;
27    private UsuarioUsu usuarioUsu;
28    private TipoFuncAcompTpfa tipoFuncAcompTpfa;
29    private Date dataUltManutencao;
30    private UsuarioUsu usuManutencao;
31    private HistoricoMaster historicoMaster;
32  
33    public HistoricoIettutfaH() {
34    }
35  
36    public HistoricoIettutfaH(ItemEstruturaIett itemEstruturaIett, UsuarioUsu usuarioUsu, TipoFuncAcompTpfa tipoFuncAcompTpfa, Date dataUltManutencao, UsuarioUsu usuManutencao, HistoricoMaster historicoMaster) {
37      this.itemEstruturaIett = itemEstruturaIett;
38      this.usuarioUsu = usuarioUsu;
39      this.tipoFuncAcompTpfa = tipoFuncAcompTpfa;
40      this.dataUltManutencao = dataUltManutencao;
41      this.usuManutencao = usuManutencao;
42      this.historicoMaster = historicoMaster;
43    }
44  
45    @GenericGenerator(name = "generator", strategy = "increment")
46    @Id
47    @GeneratedValue(generator = "generator")
48    @Column(name = "COD_IETTUTFAH", nullable = false)
49    public Long getCodIettutfaH() {
50      return this.codIettutfaH;
51    }
52  
53    public void setCodIettutfaH(Long codIettutfaH) {
54      this.codIettutfaH = codIettutfaH;
55    }
56  
57    @ManyToOne(fetch = FetchType.LAZY)
58    @JoinColumn(name = "COD_IETT")
59    public ItemEstruturaIett getItemEstruturaIett() {
60      return this.itemEstruturaIett;
61    }
62  
63    public void setItemEstruturaIett(ItemEstruturaIett itemEstruturaIett) {
64      this.itemEstruturaIett = itemEstruturaIett;
65    }
66  
67    @ManyToOne(fetch = FetchType.LAZY)
68    @JoinColumn(name = "COD_USU")
69    public UsuarioUsu getUsuarioUsu() {
70      return this.usuarioUsu;
71    }
72  
73    public void setUsuarioUsu(UsuarioUsu usuarioUsu) {
74      this.usuarioUsu = usuarioUsu;
75    }
76  
77    @ManyToOne(fetch = FetchType.LAZY)
78    @JoinColumn(name = "COD_TPFA")
79    public TipoFuncAcompTpfa getTipoFuncAcompTpfa() {
80      return this.tipoFuncAcompTpfa;
81    }
82  
83    public void setTipoFuncAcompTpfa(TipoFuncAcompTpfa tipoFuncAcompTpfa) {
84      this.tipoFuncAcompTpfa = tipoFuncAcompTpfa;
85    }
86  
87    @Temporal(TemporalType.TIMESTAMP)
88    @Column(name = "data_ult_manutencao", length = 7)
89    public Date getDataUltManutencao() {
90      return this.dataUltManutencao;
91    }
92  
93    public void setDataUltManutencao(Date dataUltManutencao) {
94      this.dataUltManutencao = dataUltManutencao;
95    }
96  
97    @ManyToOne(fetch = FetchType.LAZY)
98    @JoinColumn(name = "COD_USU_MANUTENCAO")
99    public UsuarioUsu getUsuManutencao() {
100     return this.usuManutencao;
101   }
102 
103   public void setUsuManutencao(UsuarioUsu usuManutencao) {
104     this.usuManutencao = usuManutencao;
105   }
106 
107   @ManyToOne(fetch = FetchType.LAZY)
108   @JoinColumn(name = "COD_MAH")
109   public HistoricoMaster getHistoricoMaster() {
110     return this.historicoMaster;
111   }
112 
113   public void setHistoricoMaster(HistoricoMaster historicoMaster) {
114     this.historicoMaster = historicoMaster;
115   }
116 
117 }