Thank you I am now able to save without getting the
StaleObjectStateException.  It appears after saving though the updated
version value (in the db) is not automatically retrieved and merged
into my entity.  Is this normal behavior?  Is there an additional step
I can take to ensure this value is retrieved and merged?

On Jul 4, 4:36 am, Graham Bunce <[email protected]> wrote:
> Personally, if you're going for SQL Server timestamp, I've used this:
>
>     <version name="Version" column="Version" type="binary" unsaved-
> value="null" generated="always"/>
>
> that maps to something like this
>
>         private byte[] _version;
>
> My SQL column is defined as thus:
>
>         [Version] [timestamp] NOT NULL,
>
> It works ok for me - notice I'm using "binary" and not "binaryBlob".
> If I retrieve an existing row then my version field is populated with
> the content of the SQL Server field.
--~--~---------~--~----~------------~-------~--~----~
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