[hibernate-issues] [Hibernate-JIRA] Created: (HHH-3729) @AuditJoinTable annotation has no effect for embedded concrete subclasses of a MappedSuperClass

Erik-Berndt Scheper (JIRA) noreply at atlassian.com
Thu Jan 22 06:28:39 EST 2009


@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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list