2008/10/1 Stefan Sedich <[EMAIL PROTECTED]>

>
> So basically passing the version from my UI layer and setting it is
> unsupported?


No, it is understandable.
As ID, version don't have business-meaning so you don't need to pass the
version in your DTO because the version have only persistence-meaning. NH
manage the version for optimistic-locking. The timestamp work only because
it not depend from previous value (NH override any thing you are assigning).
If you change the version by yourself you must manage optimistic-locking by
yourself.


> Does anyone have any suggestions on how this is achieved?
> I am yet to find anything out there.


Yes. Don't touch the version and let NH do it for you.
The other option is to have 2 "version" properties. One for your business
meaning and the other for persistence-meaning (the first read-write the
second nosetter).

-- 
Fabio Maulo

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