0011158: ESPEC 7 364 - Alterar cadastro de Ponto de Venda

fixes bug#11158
dev:Emerson
qua:Renato

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@85204 d1611594-4594-4d17-8e1d-87c2c4800839
master
fabricio.oliveira 2018-09-10 21:08:31 +00:00
parent c2988cae9f
commit 7be0b17ac4
1 changed files with 18 additions and 0 deletions

View File

@ -43,6 +43,9 @@ public class PtovtaCatInd implements Serializable {
@JoinColumn(name = "USUARIOBLOQUEADO_ID", referencedColumnName = "USUARIO_ID")
@ManyToOne
private Usuario usuarioBloqueado;
@JoinColumn(name = "EMPRESA_ID", referencedColumnName = "EMPRESA_ID")
@ManyToOne
private Empresa empresa;
public Integer getPtovtaCategoriaId() {
return ptovtaCategoriaId;
@ -101,6 +104,15 @@ public class PtovtaCatInd implements Serializable {
public void setUsuarioBloqueado(Usuario usuarioBloqueado) {
this.usuarioBloqueado = usuarioBloqueado;
}
public Empresa getEmpresa() {
return empresa;
}
public void setEmpresa(Empresa empresa) {
this.empresa = empresa;
}
@Override
public int hashCode() {
@ -112,6 +124,7 @@ public class PtovtaCatInd implements Serializable {
result = prime * result + ((ptovtaCategoriaId == null) ? 0 : ptovtaCategoriaId.hashCode());
result = prime * result + ((puntoVenta == null) ? 0 : puntoVenta.hashCode());
result = prime * result + ((usuarioId == null) ? 0 : usuarioId.hashCode());
result = prime * result + ((empresa == null) ? 0 : empresa.hashCode());
return result;
}
@ -154,6 +167,11 @@ public class PtovtaCatInd implements Serializable {
return false;
} else if (!usuarioId.equals(other.usuarioId))
return false;
if (empresa == null) {
if (other.empresa != null)
return false;
} else if (!empresa.equals(other.empresa))
return false;
return true;
}