Got you. Thanks.

From: [email protected] [mailto:[email protected]] On Behalf Of 
Fabio Maulo
Sent: den 22 maj 2009 16:44
To: [email protected]
Subject: [nhusers] Re: Why is NH using version from snapshot?

2009/5/22 Roger Kratz 
<[email protected]<mailto:[email protected]>>

Or do you mean "don't touch the version by hand on an already created DO"? That 
makes more sense. I mean, when "transforming" a DO from a DTO, surely the 
version should be set "by hand"? Or?

No, for sure.... and more... your DTO should not include the version because 
the version...
"As the POID even the version shouldn't have business-meaning. We are using the 
version only to have a more efficient way of optimistic-lock; nothing more, 
nothing less."

If you want send the version over the wire do it in a read-only property (btw 
this mean that you are giving a business meaning to the version).
As I said in the previous response
"if you want something very special you should write your own IUserVersionType  
implementation."

And a manual handled "version" can't be used for optimistic-lock.

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