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.AttributeOverride;
7   import javax.persistence.AttributeOverrides;
8   import javax.persistence.Column;
9   import javax.persistence.EmbeddedId;
10  import javax.persistence.Entity;
11  import javax.persistence.FetchType;
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  
18  /**
19   * ItemEstFisicoRevIettfr generated by hbm2java
20   */
21  @Entity
22  @Table(name = "tb_item_est_fisico_rev_iettfr")
23  public class ItemEstFisicoRevIettfr implements java.io.Serializable, PaiFilho {
24  
25    private static final long serialVersionUID = 519063054504176667L;
26    
27    private ItemEstFisicoRevIettfrPK comp_id;
28    private String indAtivoIettfr;
29    private Date dataInclusaoIettfr;
30    private Double qtdPrevistaIettfr;
31    private IettIndResulRevIettrr iettIndResulRevIettrr;
32    private ExercicioExe exercicioExe;
33  
34    public ItemEstFisicoRevIettfr() {
35    }
36  
37    public ItemEstFisicoRevIettfr(ItemEstFisicoRevIettfrPK comp_id) {
38      this.comp_id = comp_id;
39    }
40  
41    public ItemEstFisicoRevIettfr(ItemEstFisicoRevIettfrPK comp_id, String indAtivoIettfr, Date dataInclusaoIettfr, Double qtdPrevistaIettfr, IettIndResulRevIettrr iettIndResulRevIettrr, ExercicioExe exercicioExe) {
42      this.comp_id = comp_id;
43      this.indAtivoIettfr = indAtivoIettfr;
44      this.dataInclusaoIettfr = dataInclusaoIettfr;
45      this.qtdPrevistaIettfr = qtdPrevistaIettfr;
46      this.iettIndResulRevIettrr = iettIndResulRevIettrr;
47      this.exercicioExe = exercicioExe;
48    }
49  
50    @EmbeddedId
51    @AttributeOverrides( { @AttributeOverride(name = "codExe", column = @Column(name = "cod_exe", nullable = false, length = 4)), @AttributeOverride(name = "codIettirr", column = @Column(name = "cod_iettirr", nullable = false, length = 4)) })
52    public ItemEstFisicoRevIettfrPK getComp_id() {
53      return this.comp_id;
54    }
55  
56    public void setComp_id(ItemEstFisicoRevIettfrPK comp_id) {
57      this.comp_id = comp_id;
58    }
59  
60    @Column(name = "ind_ativo_iettfr", length = 1)
61    public String getIndAtivoIettfr() {
62      return this.indAtivoIettfr;
63    }
64  
65    public void setIndAtivoIettfr(String indAtivoIettfr) {
66      this.indAtivoIettfr = indAtivoIettfr;
67    }
68  
69    @Temporal(TemporalType.TIMESTAMP)
70    @Column(name = "data_inclusao_iettfr", length = 4)
71    public Date getDataInclusaoIettfr() {
72      return this.dataInclusaoIettfr;
73    }
74  
75    public void setDataInclusaoIettfr(Date dataInclusaoIettfr) {
76      this.dataInclusaoIettfr = dataInclusaoIettfr;
77    }
78  
79    @Column(name = "qtd_prevista_iettfr", length = 8)
80    public Double getQtdPrevistaIettfr() {
81      return this.qtdPrevistaIettfr;
82    }
83  
84    public void setQtdPrevistaIettfr(Double qtdPrevistaIettfr) {
85      this.qtdPrevistaIettfr = qtdPrevistaIettfr;
86    }
87  
88    @ManyToOne(fetch = FetchType.LAZY)
89    @JoinColumn(name = "cod_iettirr", insertable = false, updatable = false)
90    public IettIndResulRevIettrr getIettIndResulRevIettrr() {
91      return this.iettIndResulRevIettrr;
92    }
93  
94    public void setIettIndResulRevIettrr(IettIndResulRevIettrr iettIndResulRevIettrr) {
95      this.iettIndResulRevIettrr = iettIndResulRevIettrr;
96    }
97  
98    @ManyToOne(fetch = FetchType.LAZY)
99    @JoinColumn(name = "cod_exe", insertable = false, updatable = false)
100   public ExercicioExe getExercicioExe() {
101     return this.exercicioExe;
102   }
103 
104   public void setExercicioExe(ExercicioExe exercicioExe) {
105     this.exercicioExe = exercicioExe;
106   }
107 
108 
109   public void atribuirPKPai() {
110 	  comp_id = new ItemEstFisicoRevIettfrPK();
111 	  comp_id.setCodExe(this.getExercicioExe().getCodExe());
112 	  comp_id.setCodIettirr(this.getIettIndResulRevIettrr().getCodIettirr());
113 	  
114 	
115 
116   }
117 
118 }