2008-01-03

关于Hibernate抛出LazyInitializationException

关键字: hibernate3
LazyInitializationException: could not initialize proxy - the owning Session was closed
在网上搜了一下,处理方法是lazy=false;
这个处理方法不能让人满意,不知道各位有没有更加理想的处理方法
评论
地方疙瘩人 2008-01-08
感谢两位大侠了,
除了org.springframework.orm.hibernate3.support.OpenSessionInViewFilter
另外问一下常常看到的这两个过滤器是干什么用的
com.opensymphony.module.sitemesh.filter.PageFilter
org.apache.struts2.dispatcher.ActionContextCleanUp
谢谢
anxin587 2008-01-04
Hibernate.initialize(),
DigitalSonic 2008-01-04
用Spring的OpenSessionInViewFilter或者拦截器,可以多搜搜,这似乎是个老问题了
发表评论

提醒: 该博客已发表在公共论坛,博客所有留言会成为论坛回贴,留言请注意遵守论坛发贴规则

您还没有登录,请登录后发表评论