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   * HistoricoIetteH generated by hbm2java
20   */
21  @Entity
22  @Table(name = "TB_HISTORICO_IETTEH")
23  public class HistoricoIetteH implements java.io.Serializable {
24  
25    private Long codIetteH;
26    private Date dataUltManutencaoIette;
27    private Date dataFimIette;
28    private Date dataInicioIette;
29    private String descricaoIette;
30    private EntidadeEnt entidadeEnt;
31    private TipoParticipacaoTpp tipoParticipacaoTpp;
32    private ItemEstruturaIett itemEstruturaIett;
33    private UsuarioUsu usuManutencao;
34    private HistoricoMaster historicoMaster;
35  
36    public HistoricoIetteH() {
37    }
38  
39    public HistoricoIetteH(Date dataUltManutencaoIette, Date dataFimIette, Date dataInicioIette, String descricaoIette, EntidadeEnt entidadeEnt, TipoParticipacaoTpp tipoParticipacaoTpp, ItemEstruturaIett itemEstruturaIett, UsuarioUsu usuManutencao, HistoricoMaster historicoMaster) {
40      this.dataUltManutencaoIette = dataUltManutencaoIette;
41      this.dataFimIette = dataFimIette;
42      this.dataInicioIette = dataInicioIette;
43      this.descricaoIette = descricaoIette;
44      this.entidadeEnt = entidadeEnt;
45      this.tipoParticipacaoTpp = tipoParticipacaoTpp;
46      this.itemEstruturaIett = itemEstruturaIett;
47      this.usuManutencao = usuManutencao;
48      this.historicoMaster = historicoMaster;
49    }
50  
51    @GenericGenerator(name = "generator", strategy = "increment")
52    @Id
53    @GeneratedValue(generator = "generator")
54    @Column(name = "COD_IETTEH", nullable = false)
55    public Long getCodIetteH() {
56      return this.codIetteH;
57    }
58  
59    public void setCodIetteH(Long codIetteH) {
60      this.codIetteH = codIetteH;
61    }
62  
63    @Temporal(TemporalType.TIMESTAMP)
64    @Column(name = "DATA_ULT_MANUTENCAO_IETTE", length = 7)
65    public Date getDataUltManutencaoIette() {
66      return this.dataUltManutencaoIette;
67    }
68  
69    public void setDataUltManutencaoIette(Date dataUltManutencaoIette) {
70      this.dataUltManutencaoIette = dataUltManutencaoIette;
71    }
72  
73    @Temporal(TemporalType.TIMESTAMP)
74    @Column(name = "DATA_FIM_IETTE", length = 7)
75    public Date getDataFimIette() {
76      return this.dataFimIette;
77    }
78  
79    public void setDataFimIette(Date dataFimIette) {
80      this.dataFimIette = dataFimIette;
81    }
82  
83    @Temporal(TemporalType.TIMESTAMP)
84    @Column(name = "DATA_INICIO_IETTE", length = 7)
85    public Date getDataInicioIette() {
86      return this.dataInicioIette;
87    }
88  
89    public void setDataInicioIette(Date dataInicioIette) {
90      this.dataInicioIette = dataInicioIette;
91    }
92  
93    @Column(name = "DESCRICAO_IETTE", length = 30)
94    public String getDescricaoIette() {
95      return this.descricaoIette;
96    }
97  
98    public void setDescricaoIette(String descricaoIette) {
99      this.descricaoIette = descricaoIette;
100   }
101 
102   @ManyToOne(fetch = FetchType.LAZY)
103   @JoinColumn(name = "cod_ent")
104   public EntidadeEnt getEntidadeEnt() {
105     return this.entidadeEnt;
106   }
107 
108   public void setEntidadeEnt(EntidadeEnt entidadeEnt) {
109     this.entidadeEnt = entidadeEnt;
110   }
111 
112   @ManyToOne(fetch = FetchType.LAZY)
113   @JoinColumn(name = "cod_tpp")
114   public TipoParticipacaoTpp getTipoParticipacaoTpp() {
115     return this.tipoParticipacaoTpp;
116   }
117 
118   public void setTipoParticipacaoTpp(TipoParticipacaoTpp tipoParticipacaoTpp) {
119     this.tipoParticipacaoTpp = tipoParticipacaoTpp;
120   }
121 
122   @ManyToOne(fetch = FetchType.LAZY)
123   @JoinColumn(name = "COD_IETT")
124   public ItemEstruturaIett getItemEstruturaIett() {
125     return this.itemEstruturaIett;
126   }
127 
128   public void setItemEstruturaIett(ItemEstruturaIett itemEstruturaIett) {
129     this.itemEstruturaIett = itemEstruturaIett;
130   }
131 
132   @ManyToOne(fetch = FetchType.LAZY)
133   @JoinColumn(name = "COD_USU_MANUTENCAO")
134   public UsuarioUsu getUsuManutencao() {
135     return this.usuManutencao;
136   }
137 
138   public void setUsuManutencao(UsuarioUsu usuManutencao) {
139     this.usuManutencao = usuManutencao;
140   }
141 
142   @ManyToOne(fetch = FetchType.LAZY)
143   @JoinColumn(name = "COD_MAH")
144   public HistoricoMaster getHistoricoMaster() {
145     return this.historicoMaster;
146   }
147 
148   public void setHistoricoMaster(HistoricoMaster historicoMaster) {
149     this.historicoMaster = historicoMaster;
150   }
151 
152 }