hibernate的数据完整性异常

时间:2015-06-17 07:44:11

标签: sql hibernate postgresql

我使用主键从后端创建了300条记录,所以现在当这些主键通过hibernate生成时,数据完整性异常就会显示出来。 Hilo算法用于生成密钥

org.springframework.dao.DataIntegrityViolationException: (Hibernate operation: Could not execute JDBC batch update): data integrity violated by SQL 'insert into user_log (user_role_id, login_time, logout_time, appuser_id, logged_in_IP, id) values (?, ?, ?, ?, ?, ?)'; nested exception is org.postgresql.jdbc2.PBatchUpdateException: Batch entry 0 insert into user_log (user_role_id, login_time, logout_time, appuser_id, logged_in_IP, id) values ( was aborted. Call getNextException() to see the cause.
Batch entry 0 insert into user_log (user_role_id, login_time, logout_time, appuser_id, logged_in_IP, id) values ( was aborted. Call getNextException() to see the cause.

0 个答案:

没有答案