Hibernate3.3
文章平均质量分 54
yuqiangyuqiang
这个作者很懒,什么都没留下…
展开
-
关于Hibernate AnnotationConfiguration配置错误的信息
<br />1.以前使用如下方式申明Configuration对象<br /> private static Configuration configuration = new Configuration(); <br /> 由于使用了注解的方式,因此应该使用<br /> private static AnnotationConfiguration configuration = new AnnotationConfiguration(); <br /> 进行替换<br /> <br />2.如原创 2010-07-18 23:20:00 · 2178 阅读 · 1 评论 -
Hibernate与hbm2ddl.auto工具
<br />1.hibernate.cfg.xml<br /><?xml version='1.0' encoding='ISO-8859-1'?><br /><!DOCTYPE hibernate-configuration PUBLIC<br /> "-//Hibernate/Hibernate Configuration DTD 3.0//EN"<br /> "http://hibernate.sourceforge.net/hibernate-configurat原创 2010-07-20 22:35:00 · 2014 阅读 · 0 评论 -
Hibernate和Ext,Strut2综合开发经验不多
<br />1、======================================================================================<br />使用MyEclipse创建JavaEE5.0的Web项目,在使用Hibernate3.5.1的注解功能时出现错误:<br />java.lang.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval()Z 。<br />我程序出现找个错误,主要原创 2010-07-30 23:52:00 · 825 阅读 · 0 评论 -
org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update
<br />Exception in thread "main" org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update<br /> at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:90)<br /> at org.hibernate.exception.JDBCExceptionHelper.con原创 2010-07-31 00:02:00 · 2721 阅读 · 0 评论 -
No CurrentSessionContext configured!" 异常解决方案
针对使用properties文件配置hiernate的写法,使用hibernate.cfg.xml应使用第一种调用方式或者在hibernate.cfg.xml中加入:thread原创 2010-08-01 16:02:00 · 459 阅读 · 0 评论