@AuditJoinTable annotation has no effect for embedded concrete subclasses of a
MappedSuperClass
-----------------------------------------------------------------------------------------------
Key: HHH-3729
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3729
Project: Hibernate Core
Issue Type: Bug
Components: envers
Affects Versions: 3.4
Reporter: Erik-Berndt Scheper
In the situation where I have a Person entity who has 2 different embedded addresses, like
so:
@Embedded
@org.hibernate.envers.Audited
@org.hibernate.envers.AuditJoinTable(name="JB_PSN_CORRESP_ADDRESS_AUD")
private final List<CorrespondenceAdress> correspondenceAddresses;
@Embedded
@org.hibernate.envers.Audited
@org.hibernate.envers.AuditJoinTable(name="JB_PSN_RESIDENTIAL_ADDRESS_AUD")
private final List<ResidentialAdress> residentialAddresses;
Where both CorrespondenceAdress and ResidentialAdress extend Address, which is an abstract
MappedSuperclass
@MappedSuperclass
@org.hibernate.annotations.ForceDiscriminator
@org.hibernate.envers.Audited
public abstract class Adress
I find that the AuditJoinTable annotation has no effect
--
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira