diff --git a/src/com/rjconsultores/ventaboletos/entidad/Empresa.java b/src/com/rjconsultores/ventaboletos/entidad/Empresa.java index 3fa2010e2..42ddaa0e7 100644 --- a/src/com/rjconsultores/ventaboletos/entidad/Empresa.java +++ b/src/com/rjconsultores/ventaboletos/entidad/Empresa.java @@ -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; diff --git a/src/com/rjconsultores/ventaboletos/entidad/Parada.java b/src/com/rjconsultores/ventaboletos/entidad/Parada.java index 5b0508c5b..b5d7d98bb 100644 --- a/src/com/rjconsultores/ventaboletos/entidad/Parada.java +++ b/src/com/rjconsultores/ventaboletos/entidad/Parada.java @@ -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;