Rob Hills wrote:
A record sitting in the db has the version no 0.
User A opens a form to edit the record and hibernate increments the
version to 1.
As far as hibernate is concerned, I don't understand how there is any
difference between "load an object to show a view of it" and "load an
object to show an edit view of it". I certainly don't want to have to
make a change to my database every time I read out of it...
Multiple users should be able to load the same edit form with the same
version number, and only the first to submit that form should be able to
successfully save their changes, because as part of that save the
version number should increment, which means subsequent submits of the
same form (with the now stale version) will no longer match, and can be
rejected.
-Dale
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]