日期:2014-05-18  浏览次数:20725 次

Spring+Hibernate延迟加载的问题,貌似无法延迟加载啊,老是说没有session
我用的Spring的org.springframework.orm.hibernate3.support.HibernateDaoSupport;
里面的getHibernateTemplate()来进行Hibernate操作的

但是eclipse自动生成的用的里面的find()方法,不知道是不是这个方法用的get方法,无法进行延迟加载,这个怎么办啊,如果lazy=true的话,对于我这个系统来说开销就太大了

------解决方案--------------------
路过,请看
http://topic.csdn.net/u/20080603/21/78926a4b-38d5-4382-ad2d-096ac094f017.html
http://topic.csdn.net/u/20080603/20/d43c6f5c-21ed-4f50-be13-2905a68605bd.html