fixes bug #8206
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@63968 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
c2811cdb15
commit
b556a5ff8f
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -25,4 +25,6 @@ public interface ConexionService {
|
|||
|
||||
public List<ConexionVO> buscarConexionesValidas();
|
||||
|
||||
public void borrar(List<Conexion> lsConexion);
|
||||
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue