Hi,

I've got an entity mapped with dynamicUpdate & optimistic-
lock="dirty".
The problem is, that the way NHibernate will implement the optimistic-
locking is using a comparison between the updated entity, and the
entity in the Session, but I want NHibernate to compare between the
updated entity, and a snapshot I'll provide.

In order to achieve this, I inherited the EmptyInterceptor class, and
overridden the FindDirty method,
So that it will change the previousState items according my
snapshotted entity.

But tampering with the previousState array caused the following
exception:
Row was updated or deleted by another transaction (or unsaved-value
mapping was incorrect):

So:
1. Is it possible?
2. Am I in the direction? (if not can you please point me to it?)

Thanks ahead

--sternr

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