BatchUpdateException « Exception « JPA Q&A





1. BatchUpdateException... how to I solve this?    forum.hibernate.org

Newbie Joined: Fri Sep 10, 2004 2:30 pm Posts: 2 Hibernate version: 2.1 Mapping documents: HIBERNATE1 Code between sessionFactory.openSession() and session.close(): ...

2. How to handle BatchUpdateException    forum.hibernate.org

Hi, I am using JSF, Spring and Hibernate with mysql as my db. I want to save pcode and pname,etc in the db. I used getHibernateTemplate.save(obj); I am facing an issue like when i add the same pcode and pname which is existing.... It is throwing Error : BatchUpdateException Caused by: java.sql.BatchUpdateException: Duplicate entry 'T1-test1' for key 1 I am unable ...

3. DataIntegrityViolationException and BatchUpdateException    forum.hibernate.org

I'm using Hibernate with Spring and using Spring's HibernateDaoSupport class to run my DAO. I'm getting this error when I try to insert a new value into my db: rg.springframework.dao.DataIntegrityViolationException: Hibernate operation: Could not execute JDBC batch update; SQL [insert into user_realms (users_id, realms_id) values (?, ?)]; Duplicate entry '0' for key 1; nested exception is java.sql.BatchUpdateException: Duplicate entry '0' for ...