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 javax.persistence.Column;
6   import javax.persistence.Entity;
7   import javax.persistence.FetchType;
8   import javax.persistence.GeneratedValue;
9   import javax.persistence.Id;
10  import javax.persistence.JoinColumn;
11  import javax.persistence.ManyToOne;
12  import javax.persistence.Table;
13  import javax.persistence.Transient;
14  
15  import org.hibernate.annotations.Cascade;
16  import org.hibernate.annotations.CascadeType;
17  import org.hibernate.annotations.GenericGenerator;
18  
19  import ecar.enumerator.TipoOcorrencia;
20  
21  /**
22   * EfImportOcorrenciasEfio generated by hbm2java
23   */
24  @Entity
25  @Table(name = "TB_EF_IMPORT_OCORRENCIAS_EFIO")
26  public class EfImportOcorrenciasEfio implements java.io.Serializable {
27  
28    private Long codEfio;
29    private String descricaoEfio;
30    private ImportacaoImp importacaoImp;
31    private TipoOcorrencia tipoOcorrencia;
32    private String conta;
33  
34    public EfImportOcorrenciasEfio() {
35    }
36  
37    public EfImportOcorrenciasEfio(String descricaoEfio, ImportacaoImp importacaoImp) {
38      this.descricaoEfio = descricaoEfio;
39      this.importacaoImp = importacaoImp;
40    }
41  
42    @GenericGenerator(name = "generator", strategy = "increment")
43    @Id
44    @GeneratedValue(generator = "generator")
45    @Column(name = "COD_EFIO", nullable = false)
46    public Long getCodEfio() {
47      return this.codEfio;
48    }
49  
50    public void setCodEfio(Long codEfio) {
51      this.codEfio = codEfio;
52    }
53  
54    @Column(name = "DESCRICAO_EFIO", length = 2000)
55    public String getDescricaoEfio() {
56      return this.descricaoEfio;
57    }
58  
59    public void setDescricaoEfio(String descricaoEfio) {
60      this.descricaoEfio = descricaoEfio;
61    }
62  
63    @ManyToOne(fetch = FetchType.LAZY)
64    @Cascade( { CascadeType.SAVE_UPDATE })
65    @JoinColumn(name = "COD_IMP")
66    public ImportacaoImp getImportacaoImp() {
67      return this.importacaoImp;
68    }
69  
70    public void setImportacaoImp(ImportacaoImp importacaoImp) {
71      this.importacaoImp = importacaoImp;
72    }
73  
74    public void setTipoOcorrencia(TipoOcorrencia tipoOcorrencia) {
75      this.tipoOcorrencia = tipoOcorrencia;
76    }
77  
78    @Transient
79    public TipoOcorrencia getTipoOcorrencia() {
80      return tipoOcorrencia;
81    }
82  
83    public void setConta(String conta) {
84      this.conta = conta;
85    }
86  
87    @Transient
88    public String getConta() {
89      return conta;
90    }
91  
92  }