fixes bug #7138
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@53052 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
323cef60aa
commit
dd2bc75588
|
@ -164,7 +164,7 @@ public class Ciudad implements Serializable {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Ciudad other = (Ciudad) object;
|
Ciudad other = (Ciudad) object;
|
||||||
if ((this.ciudadId == null && other.ciudadId != null) || (this.ciudadId != null && !this.ciudadId.equals(other.ciudadId))) {
|
if ((this.getCiudadId() == null && other.getCiudadId() != null) || (this.getCiudadId() != null && !this.getCiudadId().equals(other.getCiudadId()))) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -138,7 +138,7 @@ public class Colonia implements Serializable {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Colonia other = (Colonia) object;
|
Colonia other = (Colonia) object;
|
||||||
if ((this.coloniaId == null && other.coloniaId != null) || (this.coloniaId != null && !this.coloniaId.equals(other.coloniaId))) {
|
if ((this.getColoniaId() == null && other.getColoniaId() != null) || (this.getColoniaId() != null && !this.getColoniaId().equals(other.getColoniaId()))) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -173,4 +173,27 @@ public class Hotel implements Serializable {
|
||||||
this.desctelefone = desctelefone;
|
this.desctelefone = desctelefone;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
final int prime = 31;
|
||||||
|
int result = 1;
|
||||||
|
result = prime * result + ((hotelId == null) ? 0 : hotelId.hashCode());
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object obj) {
|
||||||
|
if (this == obj)
|
||||||
|
return true;
|
||||||
|
if (obj == null)
|
||||||
|
return false;
|
||||||
|
Hotel other = (Hotel) obj;
|
||||||
|
if (hotelId == null) {
|
||||||
|
if (other.hotelId != null)
|
||||||
|
return false;
|
||||||
|
} else if (!hotelId.equals(other.hotelId))
|
||||||
|
return false;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -120,4 +120,27 @@ public class PrecoApanhe implements Serializable {
|
||||||
this.usuarioId = usuarioId;
|
this.usuarioId = usuarioId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
final int prime = 31;
|
||||||
|
int result = 1;
|
||||||
|
result = prime * result + ((precoapanheId == null) ? 0 : precoapanheId.hashCode());
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object obj) {
|
||||||
|
if (this == obj)
|
||||||
|
return true;
|
||||||
|
if (obj == null)
|
||||||
|
return false;
|
||||||
|
PrecoApanhe other = (PrecoApanhe) obj;
|
||||||
|
if (precoapanheId == null) {
|
||||||
|
if (other.precoapanheId != null)
|
||||||
|
return false;
|
||||||
|
} else if (!precoapanheId.equals(other.precoapanheId))
|
||||||
|
return false;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue