bug#11495
qua:wallysson dev:thiago git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@83368 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
cae18c4edb
commit
a54463fb9d
|
@ -134,6 +134,14 @@ public class Cliente implements Serializable {
|
|||
@JoinColumn(name = "ESCOLA_ID", referencedColumnName = "ESCOLA_ID")
|
||||
private Escola escola;
|
||||
|
||||
@ManyToOne(cascade = CascadeType.ALL)
|
||||
@JoinColumn(name = "EMPRESA_ID", referencedColumnName = "EMPRESA_ID")
|
||||
private Empresa empresaCadastro;
|
||||
|
||||
@Column(name = "FECCADASTRO")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecCadastro;
|
||||
|
||||
public Cliente() {
|
||||
}
|
||||
|
||||
|
@ -457,6 +465,22 @@ public class Cliente implements Serializable {
|
|||
this.escola = escola;
|
||||
}
|
||||
|
||||
public Empresa getEmpresaCadastro() {
|
||||
return empresaCadastro;
|
||||
}
|
||||
|
||||
public void setEmpresaCadastro(Empresa empresaCadastro) {
|
||||
this.empresaCadastro = empresaCadastro;
|
||||
}
|
||||
|
||||
public Date getFecCadastro() {
|
||||
return fecCadastro;
|
||||
}
|
||||
|
||||
public void setFecCadastro(Date fecCadastro) {
|
||||
this.fecCadastro = fecCadastro;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
|
|
Loading…
Reference in New Issue