Hi Experts,
I am using Hibernate 3.0. I open a session and then I delete an entity and save new entity (with identical values but with no id and version) in the same session. it gives exception. it complains about a unique key getting violated. Which should only happen If I save and then delete. But I am deleting, then doing a session.flush() and then session.clear() and then saving an identical entity (without any id and version). I am getting error.
Please suggest what mistake I am making here.
Thanks, Pushker
|