1 Reply Latest reply on Feb 14, 2012 8:01 AM by Adam Warski

    hibernate constraint violation exception for batch update

    Sreelakshmi G Newbie

      Hi  While migrating to hibernate 3.6.5 and while deleting the entry from a child table (Foreign key relationship mentioned - 1 to many relationship) the following exception is thrown

       

       

      Could not execute JDBC batch update; nested exception is org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update

      at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:728)

      at java.lang.Thread.run(Thread.java:619)

       

      Strange part is that the code ws working without any exception in 2.6 hibernate version and the isssue is not consistent in 3.6.5.