会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
单方面
博客园
首页
新随笔
联系
管理
订阅
随笔分类 -
hibernate
could not initialize proxy - no Session
摘要:只需要把关联类配置lazy='false',也就是立即加载例如:public class stu{ private int stuid;}public class score{ private stu s;}stu.cfg.xml把lazy='false'
阅读全文
posted @
2014-12-03 23:59
单方面
阅读(202)
评论(0)
推荐(0)
hibernate配置jndi
摘要:tomcat里的conf->context.xmlhibernate.cfg.xml java:comp/env/mysql org.hibernate.dialect.MySQLDialect 使用Configuration cf=new Configuration(...
阅读全文
posted @
2014-10-20 21:35
单方面
阅读(413)
评论(0)
推荐(0)
公告