[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-5177) auditing a child of a mapped superclass forces auditing on siblings

Clint Popetz (JIRA) noreply at atlassian.com
Thu Apr 29 16:10:28 EDT 2010


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-5177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=36790#action_36790 ] 

Clint Popetz commented on HHH-5177:
-----------------------------------

Further info; this is verified to occur in 3.5.1-Final as well.  Also, it only occurs if the @MappedSuperclass has a non-audited @ManyToOne to another entity.  See the comments in the attached example.

> auditing a child of a mapped superclass forces auditing on siblings
> -------------------------------------------------------------------
>
>                 Key: HHH-5177
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5177
>             Project: Hibernate Core
>          Issue Type: Bug
>          Components: envers
>    Affects Versions: 3.3.2
>            Reporter: Clint Popetz
>            Assignee: Adam Warski
>         Attachments: envers-bug.tar.gz
>
>
> If I have:
> @MappedSuperclass public class Parent { }
> @Audited @Entity public class AuditedChild extends Parent { }
> @Entity public class NonAuditedChild extends Parent { }
> envers will try to flush audit data for changes to NonAuditedChild.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list