diff --git a/src/com/rjconsultores/ventaboletos/dao/hibernate/PrecioFixoPedagioHibernateDAO.java b/src/com/rjconsultores/ventaboletos/dao/hibernate/PrecioFixoPedagioHibernateDAO.java index 4d38ea697..7bef35ca3 100644 --- a/src/com/rjconsultores/ventaboletos/dao/hibernate/PrecioFixoPedagioHibernateDAO.java +++ b/src/com/rjconsultores/ventaboletos/dao/hibernate/PrecioFixoPedagioHibernateDAO.java @@ -16,9 +16,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.stereotype.Repository; -import com.rjconsultores.ventaboletos.dao.ClasseServicoDAO; import com.rjconsultores.ventaboletos.dao.PrecioFixoPedagioDAO; -import com.rjconsultores.ventaboletos.entidad.ClaseServicio; import com.rjconsultores.ventaboletos.entidad.PrecioFixoPedagio; /** @@ -81,6 +79,7 @@ public class PrecioFixoPedagioHibernateDAO extends GenericHibernateDAO buscarPrecioFixoPedagio(PrecioFixoPedagio obj) { Criteria c = getSession().createCriteria(getPersistentClass()); c.add(Restrictions.eq("pracaPedagioId.casetaPeajeId", obj.getPracaPedagioId().getCasetaPeajeId())); + c.add(Restrictions.eq("activo", Boolean.TRUE)); if(obj.getOrgaoConcedenteId() != null){ c.add(Restrictions.eq("orgaoConcedenteId.orgaoConcedenteId", obj.getOrgaoConcedenteId().getOrgaoConcedenteId())); }