title: Unique contraint violation whien trying to delete and add a row using Hibernate
body: <p>I have a project which which has hibernate classes mapped to the underlying tables. There is table which has a composite key.I am deleting the unique row and adding the same row in my hibernate object. Both these objects are part of another object which I am persisting into db. The program throws "UNIQUE CONSTRAINT VIOLATION" error which is presume is because insert is happening before delete operation. Is there way to resolve this using some setting in hibernate or should I have the necessary logic [outside hibernate object manipulation] in place to ensure this does not happen.</p>