-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Hibernate Envers - problem auditing subclass
PostPosted: Sun May 08, 2016 1:41 pm 
Newbie

Joined: Mon Feb 20, 2006 9:23 am
Posts: 9
I have an entity subclass Child annotated with @Audited. The parent entity class Parent is not audited. Child is using JOIN-type inheritance.

I have tried using either of

  • @Audited(auditParents={Parent.class})
  • @AuditOverride(forClass=Parent.class)

on Child to indicate that auditing of Parent should be switched on, but in each case I get an error:

Quote:
"org.hibernate.MappingException: Entity 'Child' is audited, but its superclass: 'Parent' is not."


I'm using envers 4.2.19; is this a known problem, or have I misconfigured something?


Top
 Profile  
 
 Post subject: Re: Hibernate Envers - problem auditing subclass
PostPosted: Mon May 16, 2016 9:25 am 
Hibernate Team
Hibernate Team

Joined: Thu Sep 11, 2014 2:50 am
Posts: 1628
Location: Romania
It might be related to HHH-9770.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.