Hibernate3.6.10学习笔记
iteye_14605
这个作者很懒,什么都没留下…
展开
-
解决"No CurrentSessionContext configured"错误
用Hibernate开发遇到"No CurrentSessionContext configured"错误 在使用SessionFactory的getCurrentSession方法时遇到如下错误,经过检查,原因如下:是因为在hibernate.cfg.xml文件中忘记进行了如下设置:hibernate.current_session_context_class如果是在...原创 2012-09-22 11:06:52 · 88 阅读 · 0 评论 -
Hibernate.cfg.xml使用官方说明手册中配置要注意的地方
<?xml version='1.0' encoding='utf-8'?><!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate...原创 2013-02-23 01:30:52 · 93 阅读 · 0 评论