[
https://hibernate.onjira.com/browse/HHH-4754?page=com.atlassian.jira.plug...
]
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