wilian 2016-05-13 12:32:11 +00:00
parent bc7705da2d
commit a37a5c7f1f
2 changed files with 4 additions and 4 deletions

View File

@ -325,7 +325,7 @@ public class Empresa implements Serializable {
@Override
public int hashCode() {
int hash = 0;
hash += (empresaId != null ? empresaId.hashCode() : 0);
hash += (getEmpresaId() != null ? getEmpresaId().hashCode() : 0);
return hash;
}
@ -335,7 +335,7 @@ public class Empresa implements Serializable {
return false;
}
Empresa other = (Empresa) object;
if ((this.empresaId == null && other.empresaId != null) || (this.empresaId != null && !this.empresaId.equals(other.empresaId))) {
if ((this.getEmpresaId() == null && other.getEmpresaId() != null) || (this.getEmpresaId() != null && !this.getEmpresaId().equals(other.getEmpresaId()))) {
return false;
}
return true;

View File

@ -228,7 +228,7 @@ public class Parada implements Serializable {
@Override
public int hashCode() {
int hash = 0;
hash += (paradaId != null ? paradaId.hashCode() : 0);
hash += (getParadaId() != null ? getParadaId().hashCode() : 0);
return hash;
}
@ -238,7 +238,7 @@ public class Parada implements Serializable {
return false;
}
Parada other = (Parada) object;
if ((this.paradaId == null && other.paradaId != null) || (this.paradaId != null && !this.paradaId.equals(other.paradaId))) {
if ((this.getParadaId() == null && other.getParadaId() != null) || (this.getParadaId() != null && !this.getParadaId().equals(other.getParadaId()))) {
return false;
}
return true;