diff --git a/src/com/rjconsultores/ventaboletos/dao/hibernate/GrupoRutaHibernateDAO.java b/src/com/rjconsultores/ventaboletos/dao/hibernate/GrupoRutaHibernateDAO.java index c200f68cf..284ae66f7 100644 --- a/src/com/rjconsultores/ventaboletos/dao/hibernate/GrupoRutaHibernateDAO.java +++ b/src/com/rjconsultores/ventaboletos/dao/hibernate/GrupoRutaHibernateDAO.java @@ -1,19 +1,17 @@ -/* - * To change this template, choose Tools | Templates - * and open the template in the editor. - */ package com.rjconsultores.ventaboletos.dao.hibernate; import java.util.List; import org.hibernate.Criteria; import org.hibernate.SessionFactory; +import org.hibernate.criterion.Order; import org.hibernate.criterion.Restrictions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.stereotype.Repository; import com.rjconsultores.ventaboletos.dao.GrupoRutaDAO; +import com.rjconsultores.ventaboletos.entidad.Empresa; import com.rjconsultores.ventaboletos.entidad.GrupoRuta; /** @@ -29,6 +27,14 @@ public class GrupoRutaHibernateDAO extends GenericHibernateDAO obtenerTodos() { + Criteria c = getSession().createCriteria(getPersistentClass()); + c.add(Restrictions.eq("activo", Boolean.TRUE)); + return c.list(); + } public List buscarPorNome(String descgrupo) { Criteria c = getSession().createCriteria(getPersistentClass());