I'm using attributes to configure Envers.  I found that if I employed the 
AuditOverride attribute, and specified the base class properties I was 
looking to audit.  

Finally, based on what I found in the manual I think what I'm seeing is 
intended behavior.

Scott

On Friday, August 8, 2014 3:27:17 AM UTC-5, Roger wrote:
>
> Are you configuring envers using attributes or code? 
>
> In either case - sounds like a bug to me. Please create a jira issue, 
> preferably with a failing test. 
>
>
> Sent from Samsung Mobile 
>
>
> -------- Original message -------- 
> From: Scott Resnik 
> Date:2014/08/07 9:28 PM (GMT+01:00) 
> To: [email protected] <javascript:> 
> Subject: [nhusers] Envers: Auditing inherited properties in an audited 
> entity 
>
> 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] <javascript:><mailto:
> [email protected] <javascript:>>. 
> To post to this group, send email to [email protected] <javascript:>
> <mailto:[email protected] <javascript:>>. 
> Visit this group at http://groups.google.com/group/nhusers. 
> For more options, visit https://groups.google.com/d/optout. 
>

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