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.HashSet;
7   import java.util.Set;
8   import javax.persistence.Column;
9   import javax.persistence.Entity;
10  import javax.persistence.FetchType;
11  import javax.persistence.GeneratedValue;
12  import javax.persistence.Id;
13  import javax.persistence.JoinColumn;
14  import javax.persistence.ManyToOne;
15  import javax.persistence.OneToMany;
16  import javax.persistence.Table;
17  import javax.persistence.Temporal;
18  import javax.persistence.TemporalType;
19  import org.hibernate.annotations.GenericGenerator;
20  
21  /**
22   * AcompReferenciaAref generated by hbm2java
23   */
24  @Entity
25  @Table(name = "TB_ACOMP_REFERENCIA_AREF")
26  public class AcompReferenciaAref implements java.io.Serializable {
27  
28    private Long codAref;
29    private Date dataUltManutAref;
30    private Date dataInclusaoAref;
31    private Date dataLimiteAcompFisicoAref;
32    private Date dataInicioAref;
33    private String mesAref;
34    private String anoAref;
35    private String nomeAref;
36    private OrgaoOrg orgaoOrg;
37    private TipoAcompanhamentoTa tipoAcompanhamentoTa;
38    private Set<AcompReferenciaItemAri> acompReferenciaItemAris = new HashSet<AcompReferenciaItemAri>(0);
39    private Set<AcompRefLimitesArl> acompRefLimitesArls = new HashSet<AcompRefLimitesArl>(0);
40    private UsuarioUsu usuarioUsuByCodUsuIncAref;
41    private UsuarioUsu usuarioUsuByCodUsuUltManutAref;
42    private ExercicioExe exercicioExe;
43  
44    public AcompReferenciaAref() {
45    }
46  
47    public AcompReferenciaAref(Date dataUltManutAref, Date dataInclusaoAref, Date dataLimiteAcompFisicoAref, Date dataInicioAref, String mesAref, String anoAref, String nomeAref, OrgaoOrg orgaoOrg, TipoAcompanhamentoTa tipoAcompanhamentoTa, Set<AcompReferenciaItemAri> acompReferenciaItemAris, Set<AcompRefLimitesArl> acompRefLimitesArls, UsuarioUsu usuarioUsuByCodUsuIncAref, UsuarioUsu usuarioUsuByCodUsuUltManutAref, ExercicioExe exercicioExe) {
48      this.dataUltManutAref = dataUltManutAref;
49      this.dataInclusaoAref = dataInclusaoAref;
50      this.dataLimiteAcompFisicoAref = dataLimiteAcompFisicoAref;
51      this.dataInicioAref = dataInicioAref;
52      this.mesAref = mesAref;
53      this.anoAref = anoAref;
54      this.nomeAref = nomeAref;
55      this.orgaoOrg = orgaoOrg;
56      this.tipoAcompanhamentoTa = tipoAcompanhamentoTa;
57      this.acompReferenciaItemAris = acompReferenciaItemAris;
58      this.acompRefLimitesArls = acompRefLimitesArls;
59      this.usuarioUsuByCodUsuIncAref = usuarioUsuByCodUsuIncAref;
60      this.usuarioUsuByCodUsuUltManutAref = usuarioUsuByCodUsuUltManutAref;
61      this.exercicioExe = exercicioExe;
62    }
63  
64    @GenericGenerator(name = "generator", strategy = "increment")
65    @Id
66    @GeneratedValue(generator = "generator")
67    @Column(name = "COD_AREF", nullable = false)
68    public Long getCodAref() {
69      return this.codAref;
70    }
71  
72    public void setCodAref(Long codAref) {
73      this.codAref = codAref;
74    }
75  
76    @Temporal(TemporalType.TIMESTAMP)
77    @Column(name = "DATA_ULT_MANUT_AREF", length = 7)
78    public Date getDataUltManutAref() {
79      return this.dataUltManutAref;
80    }
81  
82    public void setDataUltManutAref(Date dataUltManutAref) {
83      this.dataUltManutAref = dataUltManutAref;
84    }
85  
86    @Temporal(TemporalType.TIMESTAMP)
87    @Column(name = "DATA_INCLUSAO_AREF", length = 7)
88    public Date getDataInclusaoAref() {
89      return this.dataInclusaoAref;
90    }
91  
92    public void setDataInclusaoAref(Date dataInclusaoAref) {
93      this.dataInclusaoAref = dataInclusaoAref;
94    }
95  
96    @Temporal(TemporalType.TIMESTAMP)
97    @Column(name = "DATA_LIMITE_ACOMP_FISICO_AREF", length = 7)
98    public Date getDataLimiteAcompFisicoAref() {
99      return this.dataLimiteAcompFisicoAref;
100   }
101 
102   public void setDataLimiteAcompFisicoAref(Date dataLimiteAcompFisicoAref) {
103     this.dataLimiteAcompFisicoAref = dataLimiteAcompFisicoAref;
104   }
105 
106   @Temporal(TemporalType.TIMESTAMP)
107   @Column(name = "DATA_INICIO_AREF", length = 7)
108   public Date getDataInicioAref() {
109     return this.dataInicioAref;
110   }
111 
112   public void setDataInicioAref(Date dataInicioAref) {
113     this.dataInicioAref = dataInicioAref;
114   }
115 
116   @Column(name = "MES_AREF", length = 2)
117   public String getMesAref() {
118     return this.mesAref;
119   }
120 
121   public void setMesAref(String mesAref) {
122     this.mesAref = mesAref;
123   }
124 
125   @Column(name = "ANO_AREF", length = 4)
126   public String getAnoAref() {
127     return this.anoAref;
128   }
129 
130   public void setAnoAref(String anoAref) {
131     this.anoAref = anoAref;
132   }
133 
134   @Column(name = "NOME_AREF", length = 20)
135   public String getNomeAref() {
136     return this.nomeAref;
137   }
138 
139   public void setNomeAref(String nomeAref) {
140     this.nomeAref = nomeAref;
141   }
142 
143   @ManyToOne(fetch = FetchType.LAZY)
144   @JoinColumn(name = "COD_ORG")
145   public OrgaoOrg getOrgaoOrg() {
146     return this.orgaoOrg;
147   }
148 
149   public void setOrgaoOrg(OrgaoOrg orgaoOrg) {
150     this.orgaoOrg = orgaoOrg;
151   }
152 
153   @ManyToOne(fetch = FetchType.LAZY)
154   @JoinColumn(name = "COD_TA")
155   public TipoAcompanhamentoTa getTipoAcompanhamentoTa() {
156     return this.tipoAcompanhamentoTa;
157   }
158 
159   public void setTipoAcompanhamentoTa(TipoAcompanhamentoTa tipoAcompanhamentoTa) {
160     this.tipoAcompanhamentoTa = tipoAcompanhamentoTa;
161   }
162 
163   @OneToMany(fetch = FetchType.LAZY, mappedBy = "acompReferenciaAref")
164   public Set<AcompReferenciaItemAri> getAcompReferenciaItemAris() {
165     return this.acompReferenciaItemAris;
166   }
167 
168   public void setAcompReferenciaItemAris(Set<AcompReferenciaItemAri> acompReferenciaItemAris) {
169     this.acompReferenciaItemAris = acompReferenciaItemAris;
170   }
171 
172   @OneToMany(fetch = FetchType.LAZY, mappedBy = "acompReferenciaAref")
173   public Set<AcompRefLimitesArl> getAcompRefLimitesArls() {
174     return this.acompRefLimitesArls;
175   }
176 
177   public void setAcompRefLimitesArls(Set<AcompRefLimitesArl> acompRefLimitesArls) {
178     this.acompRefLimitesArls = acompRefLimitesArls;
179   }
180 
181   @ManyToOne(fetch = FetchType.LAZY)
182   @JoinColumn(name = "COD_USU_INC_AREF")
183   public UsuarioUsu getUsuarioUsuByCodUsuIncAref() {
184     return this.usuarioUsuByCodUsuIncAref;
185   }
186 
187   public void setUsuarioUsuByCodUsuIncAref(UsuarioUsu usuarioUsuByCodUsuIncAref) {
188     this.usuarioUsuByCodUsuIncAref = usuarioUsuByCodUsuIncAref;
189   }
190 
191   @ManyToOne(fetch = FetchType.LAZY)
192   @JoinColumn(name = "COD_USU_ULT_MANUT_AREF")
193   public UsuarioUsu getUsuarioUsuByCodUsuUltManutAref() {
194     return this.usuarioUsuByCodUsuUltManutAref;
195   }
196 
197   public void setUsuarioUsuByCodUsuUltManutAref(UsuarioUsu usuarioUsuByCodUsuUltManutAref) {
198     this.usuarioUsuByCodUsuUltManutAref = usuarioUsuByCodUsuUltManutAref;
199   }
200 
201   @ManyToOne(fetch = FetchType.LAZY)
202   @JoinColumn(name = "COD_EXE")
203   public ExercicioExe getExercicioExe() {
204     return this.exercicioExe;
205   }
206 
207   public void setExercicioExe(ExercicioExe exercicioExe) {
208     this.exercicioExe = exercicioExe;
209   }
210 
211 }