This case can be handled with the AuditOverride attribute on the inheriting 
class.  Fo example if you have a property named "BaseProperty" in your base 
class you can audit it in the inheriting class by using the attribute

[AuditOverride(PropertyName = "BaseProperty", IsAudited = true)]

at the class level on the inheriting class.

On Thursday, August 7, 2014 2:20:02 PM UTC-5, Scott Resnik wrote:
>
> Hi,
>
> I have a handful of audited entities, and they all share a common base 
> class.  This base class has a few properties that I'd like audited, but 
> they aren't.  I have a theory that they are not getting audited because 
> this inheritance is not known to NHibernate as a super class.  I have the 
> properties in the super class mapped directly in each class's mapping file.
>
> Is it possible to make Envers audit these properties without exposing my 
> class hierarchy to NHibernate?
>
> Thanks,
> Scott
>

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.

Reply via email to