Look strange for me .... if you use "version"

I get data, change them and save, there are 2 options :
1. the value of "version" is the same and save work
2, the value of "version" is different and then exception (StaleStateException)
and all this is managed by NH.

If I show on a web page, the info for one employee, I increment the
"version" field manually in the database, do a change for the employee
and save ... I should receive StaleStateException

make sense no ?


> In the nHibernate session that is :) and yes Session.Lock()
> LockMode.Upgrade may be acquired upon explicit user request using
> SELECT ... FOR UPDATE on databases which support that syntax.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to