diff --git a/src/com/rjconsultores/ventaboletos/entidad/PtovtaCatInd.java b/src/com/rjconsultores/ventaboletos/entidad/PtovtaCatInd.java index 1ae0af4b3..a2cac35b4 100644 --- a/src/com/rjconsultores/ventaboletos/entidad/PtovtaCatInd.java +++ b/src/com/rjconsultores/ventaboletos/entidad/PtovtaCatInd.java @@ -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; }