failed to lazily initialize a collection of role

<one-to-many lazy="false">报错 failed to lazily initialize a collection of role,按网上介绍的方法,在web.xml加上 org.springframework.orm.hibernate3.support.OpenSessionInViewFilter ,问题依然存在,于是加上 fetch="join",没有再报错。
posted @ 2013-10-15 22:50  senjixu  阅读(127)  评论(0编辑  收藏  举报