Caused by: java.sql.BatchUpdateException: Duplicate entry '1062' for key 'PRIMARY'
at com.mysql.jdbc.ServerPreparedStatement.executeBatch(ServerPreparedStatement.java:648)
at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeBatch(NewProxyPreparedStatement.java:1723)
at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:246)
... 91 more
2012-09-18 18:07:40 [com.huawei.servlet.AuthorityInterceptor]-[ERROR]
org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)
2012-09-18 18:07:40 [org.hibernate.util.JDBCExceptionReporter]-[ERROR] Duplicate entry '1062' for key 'PRIMARY'
2012-09-18 18:07:40 [org.hibernate.event.def.AbstractFlushingEventListener]-[ERROR] Could not synchronize database state with session
分享到:
相关推荐
hibernate注入的三种方式
本人做系统时遇到的一些Hibernate问题及解决方案。
Oracle weblogic 10G R3详细安装图解说明~~~~~~~~~ 及Hibernate报错解决方案
Hibernate常见的20个问题 1问Hibernate初始化时出现出错代码: 2问:Hibernate报错:"Not binding factory to JNDI, no JNDI name configured
问题描述 用SpringBoot + Spring Data JPA操作数据库 项目启动的时候 报了一个错 SpringBoot的版本是2.2.6.RELEASE org.springframework.beans.factory.BeanCreationException: Error creating bean with name '...
hibernate支持的所有数据库方言。用起来很方便。
tomcat报错如下,需更换c3p0包 org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.connections.spi.ConnectionProvider] at org.hibernate.service....
Hibernate JSP Struts 等 多个软件开发中报错处理集锦 对初学者 初开发者 都有很大帮助 希望大家在开发中出错的开一下再下来看一看 应该很有用的
解决spring-boot整合mybatis-plus启动报错问题; Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2020-08-04 20:19:03.246 ERROR 18020 --- ...
自动生成hibernate映射文件和实体类
hibernate-distribution-3.3.2.GA-dist 包含jar 包含javadoc
(hibernate调用C3p0)hibernate.cfg.xml
NULL 博文链接:https://hw1287789687.iteye.com/blog/1947557
2020-04-09 12:52:29.990 INFO 14120 --- [ restartedMain] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.MySQLInnoDBDialect Hibernate: create table hibernate_sequence ...
hibernate 数据库 连接池包文件,自己找了很多网站才找到的,传到CSDN方便需要的人使用
使用Struts + Spring + Hibernate完成分页笔记使用Struts + Spring + Hibernate完成分页笔记使用Struts + Spring + Hibernate完成分页笔记
由于spring3.x,基于asm的某些特征,而这些asm还没有用jdk8编译,所以采用Spring 3+JDK8就会报错,提示错误信息( java.lang.IllegalArgumentException),具体解决方案有:1、Spring 3+JDK7及以下版本 2、Spring 4+JDK8...
开始报错如下,需更换c3p0包 org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.connections.spi.ConnectionProvider] at org.hibernate.service....
关于Hibernate3中文查询出错问题的解决,相信有不少朋友也遇过这种问题,希望对大家有所帮助
Ignoring namespace handler [org.springframework.scripting.config.LangNamespaceHandler]: handler class not found ...Spring2.0 Hibernate3.1.x/Hibernate3.2 在使用Spring的AOP编程时,会用到这几个lib: