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 java.util.Date;
7   import javax.persistence.AttributeOverride;
8   import javax.persistence.AttributeOverrides;
9   import javax.persistence.Column;
10  import javax.persistence.EmbeddedId;
11  import javax.persistence.Entity;
12  import javax.persistence.FetchType;
13  import javax.persistence.JoinColumn;
14  import javax.persistence.ManyToOne;
15  import javax.persistence.Table;
16  import javax.persistence.Temporal;
17  import javax.persistence.TemporalType;
18  
19  /**
20   * ItemEstrutFisicoIettf generated by hbm2java
21   */
22  @Entity
23  @Table(name = "TB_ITEM_ESTRUT_FISICO_IETTF")
24  public class ItemEstrutFisicoIettf implements java.io.Serializable, PaiFilho {
25  
26    private static final long serialVersionUID = 3263276414101612834L;
27    
28    private ItemEstrutFisicoIettfPK comp_id;
29    private String indAtivoIettf;
30    private Date dataInclusaoIettf;
31    private Double qtdPrevistaIettf;
32    private Boolean indExclusaoPosHistorico;
33    private Date dataUltManutencao;
34    private ItemEstrtIndResulIettr itemEstrtIndResulIettr;
35    private UsuarioUsu usuarioUsuManutencao;
36    private ExercicioExe exercicioExe;
37  
38    public ItemEstrutFisicoIettf() {
39    }
40  
41    public ItemEstrutFisicoIettf(ItemEstrutFisicoIettfPK comp_id) {
42      this.comp_id = comp_id;
43    }
44  
45    public ItemEstrutFisicoIettf(ItemEstrutFisicoIettfPK comp_id, String indAtivoIettf, Date dataInclusaoIettf, Double qtdPrevistaIettf, Boolean indExclusaoPosHistorico, Date dataUltManutencao, ItemEstrtIndResulIettr itemEstrtIndResulIettr, UsuarioUsu usuarioUsuManutencao, ExercicioExe exercicioExe) {
46      this.comp_id = comp_id;
47      this.indAtivoIettf = indAtivoIettf;
48      this.dataInclusaoIettf = dataInclusaoIettf;
49      this.qtdPrevistaIettf = qtdPrevistaIettf;
50      this.indExclusaoPosHistorico = indExclusaoPosHistorico;
51      this.dataUltManutencao = dataUltManutencao;
52      this.itemEstrtIndResulIettr = itemEstrtIndResulIettr;
53      this.usuarioUsuManutencao = usuarioUsuManutencao;
54      this.exercicioExe = exercicioExe;
55    }
56  
57    @EmbeddedId
58    @AttributeOverrides( { @AttributeOverride(name = "codIettir", column = @Column(name = "COD_IETTIR", nullable = false, length = 10)), @AttributeOverride(name = "codExe", column = @Column(name = "COD_EXE", nullable = false, length = 10)) })
59    public ItemEstrutFisicoIettfPK getComp_id() {
60      return this.comp_id;
61    }
62  
63    public void setComp_id(ItemEstrutFisicoIettfPK comp_id) {
64      this.comp_id = comp_id;
65    }
66  
67    @Column(name = "IND_ATIVO_IETTF", length = 1)
68    public String getIndAtivoIettf() {
69      return this.indAtivoIettf;
70    }
71  
72    public void setIndAtivoIettf(String indAtivoIettf) {
73      this.indAtivoIettf = indAtivoIettf;
74    }
75  
76    @Temporal(TemporalType.TIMESTAMP)
77    @Column(name = "DATA_INCLUSAO_IETTF", length = 7)
78    public Date getDataInclusaoIettf() {
79      return this.dataInclusaoIettf;
80    }
81  
82    public void setDataInclusaoIettf(Date dataInclusaoIettf) {
83      this.dataInclusaoIettf = dataInclusaoIettf;
84    }
85  
86    @Column(name = "QTD_PREVISTA_IETTF", length = 14)
87    public Double getQtdPrevistaIettf() {
88      return this.qtdPrevistaIettf;
89    }
90  
91    public void setQtdPrevistaIettf(Double qtdPrevistaIettf) {
92      this.qtdPrevistaIettf = qtdPrevistaIettf;
93    }
94  
95    @Column(name = "IND_EXCLUSAO_POS_HISTORICO")
96    public Boolean getIndExclusaoPosHistorico() {
97      return this.indExclusaoPosHistorico;
98    }
99  
100   public void setIndExclusaoPosHistorico(Boolean indExclusaoPosHistorico) {
101     this.indExclusaoPosHistorico = indExclusaoPosHistorico;
102   }
103 
104   @Column(name = "DATA_ULT_MANUTENCAO", length = 7)
105   public Date getDataUltManutencao() {
106     return this.dataUltManutencao;
107   }
108 
109   public void setDataUltManutencao(Date dataUltManutencao) {
110     this.dataUltManutencao = dataUltManutencao;
111   }
112 
113   @ManyToOne(fetch = FetchType.LAZY)
114   @JoinColumn(name = "COD_IETTIR", insertable = false, updatable = false)
115   public ItemEstrtIndResulIettr getItemEstrtIndResulIettr() {
116     return this.itemEstrtIndResulIettr;
117   }
118 
119   public void setItemEstrtIndResulIettr(ItemEstrtIndResulIettr itemEstrtIndResulIettr) {
120     this.itemEstrtIndResulIettr = itemEstrtIndResulIettr;
121   }
122 
123   @ManyToOne(fetch = FetchType.LAZY)
124   @JoinColumn(name = "COD_USU_MANUTENCAO")
125   public UsuarioUsu getUsuarioUsuManutencao() {
126     return this.usuarioUsuManutencao;
127   }
128 
129   public void setUsuarioUsuManutencao(UsuarioUsu usuarioUsuManutencao) {
130     this.usuarioUsuManutencao = usuarioUsuManutencao;
131   }
132 
133   @ManyToOne(fetch = FetchType.LAZY)
134   @JoinColumn(name = "COD_EXE", insertable = false, updatable = false)
135   public ExercicioExe getExercicioExe() {
136     return this.exercicioExe;
137   }
138 
139   public void setExercicioExe(ExercicioExe exercicioExe) {
140     this.exercicioExe = exercicioExe;
141   }
142 
143   public void atribuirPKPai() {
144 	  comp_id = new ItemEstrutFisicoIettfPK();
145 	  comp_id.setCodExe(this.getExercicioExe().getCodExe());
146 	  comp_id.setCodIettir(this.getItemEstrtIndResulIettr().getCodIettir());
147   }
148 
149 }