The problem happens when I have two clients running against a single database. Suppose the database only has one table and two rows:
TABLE
--------
ROW 1
ROW 2
Both client loaded same set of data. After client 1 deleted "ROW 1", client 2 then updates "ROW 2" and attempt to save. As a result I get an "Row not found" exception.
I guess my question is how do I get Hibernate to ignore that "ROW 1" was deleted by someone else and don't throw the exception?
I have looked into the method
Code:
public void delete(Object object) throws HibernateException;
inside
SessionImpl class and noticed the following code:
Code:
if ( entry.status==DELETED || entry.status==GONE ) {
log.trace("object was already deleted");
return;
}
But there is no method that allows me to change the status of an entry.
Can someone please help me with this?
Many thanks,
KC