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

    OneToMany relationship BatchUpdateException

    aranzuglia

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

      When I try:
      a.getBs().add(b)

      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?

      thanks