0 Replies Latest reply on Jan 18, 2006 8:50 AM by Atilio Ranzuglia

    OneToMany relationship BatchUpdateException

    Atilio Ranzuglia Newbie

      I have an entity A which have a relationship with entity B, it is OneToMany

      When I try:

      I get BatchUpdateException with duplicate entry

      In mysql's query log I can see a delete of the relationship and then some inserts statements

      Apparently that delete statement doens't works because one of the inserts fails (trying to insert an object that previously exists in the relation)

      Is there any way to alter the order of the batch update, i have repeteable_read and innodb, any to configure about that on hibernate?