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

Pentaho BI Platform Tracking | Paul Stoellberger | 6 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0
  2. 0
  3. 0

    persisting a collection - one-to-many mapping (Object Relational Mapping forum at JavaRanch)

    coderanch.com | 2 years ago
    org.hibernate.exception.ConstraintViolationException: could not insert collection: [test.Address.persons#3001]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    persisting a collection - one-to-many mapping

    Coderanch | 1 decade ago | sai kinnera
    org.hibernate.exception.ConstraintViolationException: could not insert collection: [test.Address.persons#3001]
  6. 0

    Eclipse Community Forums: EMF ยป [CDO] Many-to-many association with SQLServer Database -> SQLServerException: Cannot insert t

    eclipse.org | 2 years ago
    org.hibernate.exception.ConstraintViolationException: could not insert collection: [Writer.book#wA] at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:96) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66) at org.hibernate.persister.collection.AbstractCollectionPersister.recreate(AbstractCollectionPersister.java:1243) at org.hibernate.action.CollectionRecreateAction.execute(CollectionRecreateAction.java:58)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.hibernate.exception.ConstraintViolationException

      Could not execute JDBC batch update

      at org.hibernate.exception.SQLStateConverter.convert()
    2. Hibernate
      AbstractCollectionPersister.recreate
      1. org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)
      2. org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
      3. org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:253)
      4. org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:92)
      5. org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:87)
      6. org.hibernate.jdbc.AbstractBatcher.prepareBatchStatement(AbstractBatcher.java:222)
      7. org.hibernate.persister.collection.AbstractCollectionPersister.recreate(AbstractCollectionPersister.java:1119)
      7 frames
    3. Hibernate
      CollectionRecreateAction.execute
      1. org.hibernate.action.CollectionRecreateAction.execute(CollectionRecreateAction.java:39)
      1 frame
    4. Hibernate
      ActionQueue.execute
      1. org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)
      1 frame