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,
|