日期:2014-05-16  浏览次数:20475 次

hibernate 报错

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