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   * HistoricoIettvH generated by hbm2java
20   */
21  @Entity
22  @Table(name = "TB_HISTORICO_IETTVH")
23  public class HistoricoIettvH implements java.io.Serializable {
24  
25    private Long codIettvH;
26    private Date dataInclusaoIettv;
27    private Long codIettv;
28    private AgendaOcorrenciaAgeo agendaOcorrenciaAgeo;
29    private ItemEstruturaIett itemEstruturaIett;
30    private SegmentoItemSgti segmentoItemSgti;
31    private UsuarioUsu usuManutencao;
32    private HistoricoMaster historicoMaster;
33  
34    public HistoricoIettvH() {
35    }
36  
37    public HistoricoIettvH(Date dataInclusaoIettv, Long codIettv, AgendaOcorrenciaAgeo agendaOcorrenciaAgeo, ItemEstruturaIett itemEstruturaIett, SegmentoItemSgti segmentoItemSgti, UsuarioUsu usuManutencao, HistoricoMaster historicoMaster) {
38      this.dataInclusaoIettv = dataInclusaoIettv;
39      this.codIettv = codIettv;
40      this.agendaOcorrenciaAgeo = agendaOcorrenciaAgeo;
41      this.itemEstruturaIett = itemEstruturaIett;
42      this.segmentoItemSgti = segmentoItemSgti;
43      this.usuManutencao = usuManutencao;
44      this.historicoMaster = historicoMaster;
45    }
46  
47    @GenericGenerator(name = "generator", strategy = "increment")
48    @Id
49    @GeneratedValue(generator = "generator")
50    @Column(name = "COD_IETTVH", nullable = false)
51    public Long getCodIettvH() {
52      return this.codIettvH;
53    }
54  
55    public void setCodIettvH(Long codIettvH) {
56      this.codIettvH = codIettvH;
57    }
58  
59    @Temporal(TemporalType.TIMESTAMP)
60    @Column(name = "DATA_INCLUSAO_IETTV", length = 7)
61    public Date getDataInclusaoIettv() {
62      return this.dataInclusaoIettv;
63    }
64  
65    public void setDataInclusaoIettv(Date dataInclusaoIettv) {
66      this.dataInclusaoIettv = dataInclusaoIettv;
67    }
68  
69    @Column(name = "COD_IETTV")
70    public Long getCodIettv() {
71      return this.codIettv;
72    }
73  
74    public void setCodIettv(Long codIettv) {
75      this.codIettv = codIettv;
76    }
77  
78    @ManyToOne(fetch = FetchType.LAZY)
79    @JoinColumn(name = "COD_AGEO")
80    public AgendaOcorrenciaAgeo getAgendaOcorrenciaAgeo() {
81      return this.agendaOcorrenciaAgeo;
82    }
83  
84    public void setAgendaOcorrenciaAgeo(AgendaOcorrenciaAgeo agendaOcorrenciaAgeo) {
85      this.agendaOcorrenciaAgeo = agendaOcorrenciaAgeo;
86    }
87  
88    @ManyToOne(fetch = FetchType.LAZY)
89    @JoinColumn(name = "COD_IETT")
90    public ItemEstruturaIett getItemEstruturaIett() {
91      return this.itemEstruturaIett;
92    }
93  
94    public void setItemEstruturaIett(ItemEstruturaIett itemEstruturaIett) {
95      this.itemEstruturaIett = itemEstruturaIett;
96    }
97  
98    @ManyToOne(fetch = FetchType.LAZY)
99    @JoinColumn(name = "COD_SGTI")
100   public SegmentoItemSgti getSegmentoItemSgti() {
101     return this.segmentoItemSgti;
102   }
103 
104   public void setSegmentoItemSgti(SegmentoItemSgti segmentoItemSgti) {
105     this.segmentoItemSgti = segmentoItemSgti;
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 }