[b]Hibernate version:[/b] NHibernate 1.2.1.4000
[b]Name and version of the database you are using:[/b] Oracle 10g
Hi there,
I'm using IInterceptor for auditing.
As I am checking all properties whether to audit them or not I already know indices of all dirty properties.
So in FindDirty method of my interceptor instead of returning default value (null) I'm returning these indices in hope to avoid extra dirty check and speed things up a bit.
As a result of this I get double version increment for newly created objects. I'm expecting just OnSave to be called, but I get OnFlushDirty called as well as if they're updated. This causes double version increment as it happens on PostUpdate() method of EntityEntry.
How do I tell NHibernate to use my dirty indices without causing this extra work to be done?
Thanks,
Max.
|