I am trying to use this technique as described here and I've run into
a problem (NH 2.0.1GA) where NH does not retrieve the timestamp after
updating a entity that has the timestamp mapped as above. Is this
technique version dependent? The thread I started describing my
problem can be found here:

http://groups.google.com/group/nhusers/browse_thread/thread/e31e8ee64197433a

On Feb 9, 1:24 pm, Graham Bunce <[email protected]> wrote:
> Yes there is, Look for the "Version" element in the hbm, e.g.
>
> <version name="Version" column="Version" type="binary" unsaved-
> value="null" generated="always"/>
>
> This maps to a C# byte[] property in the class called "Version"
>
> e.g.
>
>         public virtual byte[] Version
>         {
>             get { return _version; }
>             set { _version = value; }
>         }
>
> and a SQL column such as "[Version] [timestamp] NOT NULL"
--~--~---------~--~----~------------~-------~--~----~
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