-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Row was updated or deleted by another transaction
PostPosted: Fri Jun 25, 2010 11:02 am 
Newbie

Joined: Wed Apr 14, 2010 4:33 pm
Posts: 8
Hi,
I am getting a org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect). I have a previously created object Permission which is saved to a User just fine. When I go to update the object in get the above error message. I was wondering how I can resolve this issue. Before each save or update I check to see if the session is dirty. If the session is dirty then I do a getSession().flush() and that is where my exception gets thrown.

Thank you,


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.