Expert |
|
Joined: Thu May 26, 2005 9:19 am Posts: 262 Location: Oak Creek, WI
|
Possible scenario for this.
You have got the object from the DB and must have kept it with you for long time. In the meantime someone other must have got the same object from the DB and must have updated. So now if you try to update your object into DB, Hibernate will throw this error because the object which are now having is not syncronized with the session. So try to use some kind of LOCK to prevent from concurrency.
_________________ RamnathN
Senior Software Engineer
http://www.linkedin.com/in/ramnathn
Don't forget to rate.
|
|