edgar 2016-12-22 11:26:29 +00:00
parent c2811cdb15
commit b556a5ff8f
4 changed files with 20 additions and 5 deletions

View File

@ -38,7 +38,7 @@ public class ConexionConfHibernateDAO extends GenericHibernateDAO<ConexionConf,
Criteria ctrl = c.createCriteria("conexionCtrl");
ctrl.add(Restrictions.eq("conexionctrlId", conexionCtrlId));
return (ConexionConf) c.uniqueResult();
}

View File

@ -51,7 +51,7 @@ public class Conexion implements Serializable {
private Long conexionctrlId;
@Column(name = "CORRIDA_ID")
private Long corridaId;
public Long getCorridaId() {
return corridaId;
}
@ -128,10 +128,14 @@ public class Conexion implements Serializable {
return false;
}
Conexion other = (Conexion) object;
if ((this.conexionId == null && other.conexionId != null) || (this.conexionId != null && !this.conexionId.equals(other.conexionId))) {
return false;
if (this.conexionId == null && other.getConexionId() == null) {
return this.numgrupo == other.getNumgrupo()
&& this.getOrigenId() == other.getOrigenId()
&& this.getNumsecuencia() == other.getNumsecuencia()
&& this.getDestinoId() == other.destinoId;
}
return true;
return conexionId == other.getConexionId();
}
@Override

View File

@ -25,4 +25,6 @@ public interface ConexionService {
public List<ConexionVO> buscarConexionesValidas();
public void borrar(List<Conexion> lsConexion);
}

View File

@ -69,4 +69,13 @@ public class ConexionServiceImpl implements ConexionService {
conexionDAO.actualizacion(conexion);
}
@Override
@Transactional
public void borrar(List<Conexion> lsConexion) {
for (Conexion conexion : lsConexion) {
borrar(conexion);
}
}
}