From 67571bbdc62d02fd53a53c01fd853dba8df79772 Mon Sep 17 00:00:00 2001 From: gleimar Date: Wed, 8 Aug 2012 18:55:09 +0000 Subject: [PATCH] git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@20251 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../dao/hibernate/TramoHibernateDAO.java | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/src/com/rjconsultores/ventaboletos/dao/hibernate/TramoHibernateDAO.java b/src/com/rjconsultores/ventaboletos/dao/hibernate/TramoHibernateDAO.java index 9ecaa64d5..50a8b9a93 100644 --- a/src/com/rjconsultores/ventaboletos/dao/hibernate/TramoHibernateDAO.java +++ b/src/com/rjconsultores/ventaboletos/dao/hibernate/TramoHibernateDAO.java @@ -4,12 +4,8 @@ */ package com.rjconsultores.ventaboletos.dao.hibernate; -import com.rjconsultores.ventaboletos.dao.TramoDAO; -import com.rjconsultores.ventaboletos.entidad.ClaseServicio; -import com.rjconsultores.ventaboletos.entidad.Parada; -import com.rjconsultores.ventaboletos.entidad.Tramo; -import com.rjconsultores.ventaboletos.entidad.Via; import java.util.List; + import org.hibernate.Criteria; import org.hibernate.FetchMode; import org.hibernate.SessionFactory; @@ -20,6 +16,12 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.stereotype.Repository; +import com.rjconsultores.ventaboletos.dao.TramoDAO; +import com.rjconsultores.ventaboletos.entidad.ClaseServicio; +import com.rjconsultores.ventaboletos.entidad.Parada; +import com.rjconsultores.ventaboletos.entidad.Tramo; +import com.rjconsultores.ventaboletos.entidad.Via; + /** * * @author Administrador @@ -83,13 +85,13 @@ public class TramoHibernateDAO extends GenericHibernateDAO c.add(Restrictions.eq("activo", Boolean.TRUE)); c.addOrder(Order.asc("desctramo")); - c.setFetchMode("origem", FetchMode.LAZY); - c.setFetchMode("destino", FetchMode.LAZY); - c.setFetchMode("lsTramoTiempo", FetchMode.LAZY); - c.setFetchMode("rutaSecuenciaList", FetchMode.LAZY); - c.setFetchMode("rutaCombinacionList", FetchMode.LAZY); - c.setFetchMode("tramoServicioList", FetchMode.LAZY); - c.setFetchMode("tramoKms", FetchMode.LAZY); + c.setFetchMode("origem", FetchMode.SELECT); + c.setFetchMode("destino", FetchMode.SELECT); + c.setFetchMode("lsTramoTiempo", FetchMode.SELECT); + c.setFetchMode("rutaSecuenciaList", FetchMode.SELECT); + c.setFetchMode("rutaCombinacionList", FetchMode.SELECT); + c.setFetchMode("tramoServicioList", FetchMode.SELECT); + c.setFetchMode("tramoKms", FetchMode.SELECT); return c.list(); }