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.math.BigDecimal;
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   * HistoricoIettbH generated by hbm2java
21   */
22  @Entity
23  @Table(name = "TB_HISTORICO_IETTBH")
24  public class HistoricoIettbH implements java.io.Serializable {
25  
26    private Long codIettbH;
27    private Date dataUltManutencaoIettb;
28    private String comentarioIettb;
29    private BigDecimal qtdPrevistaIettb;
30    private BeneficiarioBnf beneficiarioBnf;
31    private ItemEstruturaIett itemEstruturaIett;
32    private UsuarioUsu usuManutencao;
33    private HistoricoMaster historicoMaster;
34  
35    public HistoricoIettbH() {
36    }
37  
38    public HistoricoIettbH(Date dataUltManutencaoIettb, String comentarioIettb, BigDecimal qtdPrevistaIettb, BeneficiarioBnf beneficiarioBnf, ItemEstruturaIett itemEstruturaIett, UsuarioUsu usuManutencao, HistoricoMaster historicoMaster) {
39      this.dataUltManutencaoIettb = dataUltManutencaoIettb;
40      this.comentarioIettb = comentarioIettb;
41      this.qtdPrevistaIettb = qtdPrevistaIettb;
42      this.beneficiarioBnf = beneficiarioBnf;
43      this.itemEstruturaIett = itemEstruturaIett;
44      this.usuManutencao = usuManutencao;
45      this.historicoMaster = historicoMaster;
46    }
47  
48    @GenericGenerator(name = "generator", strategy = "increment")
49    @Id
50    @GeneratedValue(generator = "generator")
51    @Column(name = "COD_IETTBH", nullable = false)
52    public Long getCodIettbH() {
53      return this.codIettbH;
54    }
55  
56    public void setCodIettbH(Long codIettbH) {
57      this.codIettbH = codIettbH;
58    }
59  
60    @Temporal(TemporalType.TIMESTAMP)
61    @Column(name = "DATA_ULT_MANUTENCAO_IETTB", length = 7)
62    public Date getDataUltManutencaoIettb() {
63      return this.dataUltManutencaoIettb;
64    }
65  
66    public void setDataUltManutencaoIettb(Date dataUltManutencaoIettb) {
67      this.dataUltManutencaoIettb = dataUltManutencaoIettb;
68    }
69  
70    @Column(name = "COMENTARIO_IETTB", length = 2000)
71    public String getComentarioIettb() {
72      return this.comentarioIettb;
73    }
74  
75    public void setComentarioIettb(String comentarioIettb) {
76      this.comentarioIettb = comentarioIettb;
77    }
78  
79    @Column(name = "QTD_PREVISTA_IETTB", length = 14)
80    public BigDecimal getQtdPrevistaIettb() {
81      return this.qtdPrevistaIettb;
82    }
83  
84    public void setQtdPrevistaIettb(BigDecimal qtdPrevistaIettb) {
85      this.qtdPrevistaIettb = qtdPrevistaIettb;
86    }
87  
88    @ManyToOne(fetch = FetchType.LAZY)
89    @JoinColumn(name = "cod_bnf")
90    public BeneficiarioBnf getBeneficiarioBnf() {
91      return this.beneficiarioBnf;
92    }
93  
94    public void setBeneficiarioBnf(BeneficiarioBnf beneficiarioBnf) {
95      this.beneficiarioBnf = beneficiarioBnf;
96    }
97  
98    @ManyToOne(fetch = FetchType.LAZY)
99    @JoinColumn(name = "COD_IETT")
100   public ItemEstruturaIett getItemEstruturaIett() {
101     return this.itemEstruturaIett;
102   }
103 
104   public void setItemEstruturaIett(ItemEstruturaIett itemEstruturaIett) {
105     this.itemEstruturaIett = itemEstruturaIett;
106   }
107 
108   @ManyToOne(fetch = FetchType.LAZY)
109   @JoinColumn(name = "COD_USU_MANUTENCAO")
110   public UsuarioUsu getUsuManutencao() {
111     return this.usuManutencao;
112   }
113 
114   public void setUsuManutencao(UsuarioUsu usuManutencao) {
115     this.usuManutencao = usuManutencao;
116   }
117 
118   @ManyToOne(fetch = FetchType.LAZY)
119   @JoinColumn(name = "COD_MAH")
120   public HistoricoMaster getHistoricoMaster() {
121     return this.historicoMaster;
122   }
123 
124   public void setHistoricoMaster(HistoricoMaster historicoMaster) {
125     this.historicoMaster = historicoMaster;
126   }
127 
128 }