-
Apr 9th, 2010, 07:56 AM
#1
org.hibernate.NonUniqueObjectException
Hi,
i am using hibernate.
Below is the code, i am using
sessionobject.saveOrUpdate(adminObject);
sessionobject.saveOrUpdate(addressObject);
sessionobject.saveOrUpdate(roleObject);
then
sessionobject.flush();
tranObj.commit();
But, when i am trying to edit and enter the same again , i am hitting this exception. Can any one advise on this.
-
Apr 9th, 2010, 10:57 AM
#2
-
Apr 9th, 2010, 01:54 PM
#3
If you use merge, consider also to register Spring's IdTransferringMergeEventListener on your SessionFactory
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules