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-87c2c4800839master
parent
c2988cae9f
commit
7be0b17ac4
|
@ -43,6 +43,9 @@ public class PtovtaCatInd implements Serializable {
|
||||||
@JoinColumn(name = "USUARIOBLOQUEADO_ID", referencedColumnName = "USUARIO_ID")
|
@JoinColumn(name = "USUARIOBLOQUEADO_ID", referencedColumnName = "USUARIO_ID")
|
||||||
@ManyToOne
|
@ManyToOne
|
||||||
private Usuario usuarioBloqueado;
|
private Usuario usuarioBloqueado;
|
||||||
|
@JoinColumn(name = "EMPRESA_ID", referencedColumnName = "EMPRESA_ID")
|
||||||
|
@ManyToOne
|
||||||
|
private Empresa empresa;
|
||||||
|
|
||||||
public Integer getPtovtaCategoriaId() {
|
public Integer getPtovtaCategoriaId() {
|
||||||
return ptovtaCategoriaId;
|
return ptovtaCategoriaId;
|
||||||
|
@ -102,6 +105,15 @@ public class PtovtaCatInd implements Serializable {
|
||||||
this.usuarioBloqueado = usuarioBloqueado;
|
this.usuarioBloqueado = usuarioBloqueado;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public Empresa getEmpresa() {
|
||||||
|
return empresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmpresa(Empresa empresa) {
|
||||||
|
this.empresa = empresa;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
final int prime = 31;
|
final int prime = 31;
|
||||||
|
@ -112,6 +124,7 @@ public class PtovtaCatInd implements Serializable {
|
||||||
result = prime * result + ((ptovtaCategoriaId == null) ? 0 : ptovtaCategoriaId.hashCode());
|
result = prime * result + ((ptovtaCategoriaId == null) ? 0 : ptovtaCategoriaId.hashCode());
|
||||||
result = prime * result + ((puntoVenta == null) ? 0 : puntoVenta.hashCode());
|
result = prime * result + ((puntoVenta == null) ? 0 : puntoVenta.hashCode());
|
||||||
result = prime * result + ((usuarioId == null) ? 0 : usuarioId.hashCode());
|
result = prime * result + ((usuarioId == null) ? 0 : usuarioId.hashCode());
|
||||||
|
result = prime * result + ((empresa == null) ? 0 : empresa.hashCode());
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -154,6 +167,11 @@ public class PtovtaCatInd implements Serializable {
|
||||||
return false;
|
return false;
|
||||||
} else if (!usuarioId.equals(other.usuarioId))
|
} else if (!usuarioId.equals(other.usuarioId))
|
||||||
return false;
|
return false;
|
||||||
|
if (empresa == null) {
|
||||||
|
if (other.empresa != null)
|
||||||
|
return false;
|
||||||
|
} else if (!empresa.equals(other.empresa))
|
||||||
|
return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue