Is there any way, to force a write of an object, which does not throw a stale object exception, thus overwriting the data table.
I have a dialog, which ops up during a stale object exception, and shows the user, the two states of the same object. their in-memory object, and the latest persistent object from the database.
The choice then, is to abandon their object, and refresh from the database, or to force an overwrite of the database, with their object.
But how do I stop another stale object exception from happening.
I've tried setting the version property of the in-memory object to that of the stored object, but an exception happens.
Any clues ?
Thanks
|