2 Replies Latest reply on Sep 11, 2007 12:25 PM by Imran Pariyani

    wrong insert/delete order when updating record-set

    Imran Pariyani Newbie

      I have a record with a OneToMany association. From this associated record-set a record is removed and added again, both records identified with the same key. When doing a merge, I get a Unique constraint violation, because EJB first tries to insert the new record. in fact it should first delete the old record, and after this insert the new record, avoiding the unique constraint violation.

      There is a bug registered with the same issue at
      http://opensource.atlassian.com/projects/hibernate/browse/HHH-2801

      Any help would be appreciated

      Regards

      Imran Pariyani