[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-4754) @AuditMappedBy broken with inheritence
Lukasz Antoniak (JIRA)
noreply at atlassian.com
Tue Mar 6 13:34:48 EST 2012
[ https://hibernate.onjira.com/browse/HHH-4754?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45850#comment-45850 ]
Lukasz Antoniak commented on HHH-4754:
--------------------------------------
I wanted to fix this issue, but while looking at {{BaseEnversCollectionEventListener}} history, I have realized that this bug does not exist since 03/2011.
> @AuditMappedBy broken with inheritence
> --------------------------------------
>
> Key: HHH-4754
> URL: https://hibernate.onjira.com/browse/HHH-4754
> Project: Hibernate ORM
> Issue Type: Bug
> Components: envers
> Environment: envers-hibernate-3.3 Branch
> Reporter: Chris Raschl
> Priority: Minor
> Attachments: auditMappedBy-fix.diff
>
>
> Consider following entities:
> - A (having a "fake" bidirectional Association annotated with @AuditMappedBy)
> - B extends A
> If B is persisted or updated with a change made to the collection annotated with @AuditMappedBy the AuditEventListener does not check "fake" many-to-one bidirectional relations correctly, because the super class is not considered (although that has already been implemented in EntitiesConfigurations).
> I've attached the fix (I was not sure which format to use, hope this is ok)...
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list