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 org.hibernate.annotations.GenericGenerator;
15  
16  /**
17   * HistoricoIettSatbH generated by hbm2java
18   */
19  @Entity
20  @Table(name = "TB_HISTORICO_IETTSATBH")
21  public class HistoricoIettSatbH implements java.io.Serializable {
22  
23    private Long codIettsatbh;
24    private ItemEstruturaIett itemEstruturaIett;
25    private SisAtributoSatb sisAtributoSatb;
26    private String informacao;
27    private UsuarioUsu usuManutencao;
28    private Date dataUltManutencao;
29    private HistoricoMaster historicoMaster;
30  
31    public HistoricoIettSatbH() {
32    }
33  
34    public HistoricoIettSatbH(ItemEstruturaIett itemEstruturaIett, SisAtributoSatb sisAtributoSatb, String informacao, UsuarioUsu usuManutencao, Date dataUltManutencao, HistoricoMaster historicoMaster) {
35      this.itemEstruturaIett = itemEstruturaIett;
36      this.sisAtributoSatb = sisAtributoSatb;
37      this.informacao = informacao;
38      this.usuManutencao = usuManutencao;
39      this.dataUltManutencao = dataUltManutencao;
40      this.historicoMaster = historicoMaster;
41    }
42  
43    @GenericGenerator(name = "generator", strategy = "increment")
44    @Id
45    @GeneratedValue(generator = "generator")
46    @Column(name = "cod_iettsatbh", nullable = false)
47    public Long getCodIettsatbh() {
48      return this.codIettsatbh;
49    }
50  
51    public void setCodIettsatbh(Long codIettsatbh) {
52      this.codIettsatbh = codIettsatbh;
53    }
54  
55    @ManyToOne(fetch = FetchType.LAZY)
56    @JoinColumn(name = "COD_IETT")
57    public ItemEstruturaIett getItemEstruturaIett() {
58      return this.itemEstruturaIett;
59    }
60  
61    public void setItemEstruturaIett(ItemEstruturaIett itemEstruturaIett) {
62      this.itemEstruturaIett = itemEstruturaIett;
63    }
64  
65    @ManyToOne(fetch = FetchType.LAZY)
66    @JoinColumn(name = "cod_satb")
67    public SisAtributoSatb getSisAtributoSatb() {
68      return this.sisAtributoSatb;
69    }
70  
71    public void setSisAtributoSatb(SisAtributoSatb sisAtributoSatb) {
72      this.sisAtributoSatb = sisAtributoSatb;
73    }
74  
75    @Column(name = "informacao", length = 2000)
76    public String getInformacao() {
77      return this.informacao;
78    }
79  
80    public void setInformacao(String informacao) {
81      this.informacao = informacao;
82    }
83  
84    @ManyToOne(fetch = FetchType.LAZY)
85    @JoinColumn(name = "COD_USU_MANUTENCAO")
86    public UsuarioUsu getUsuManutencao() {
87      return this.usuManutencao;
88    }
89  
90    public void setUsuManutencao(UsuarioUsu usuManutencao) {
91      this.usuManutencao = usuManutencao;
92    }
93  
94    @Column(name = "data_ult_manutencao")
95    public Date getDataUltManutencao() {
96      return this.dataUltManutencao;
97    }
98  
99    public void setDataUltManutencao(Date dataUltManutencao) {
100     this.dataUltManutencao = dataUltManutencao;
101   }
102 
103   @ManyToOne(fetch = FetchType.LAZY)
104   @JoinColumn(name = "COD_MAH")
105   public HistoricoMaster getHistoricoMaster() {
106     return this.historicoMaster;
107   }
108 
109   public void setHistoricoMaster(HistoricoMaster historicoMaster) {
110     this.historicoMaster = historicoMaster;
111   }
112 
113 }