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

Erik-Berndt Scheper (JIRA) noreply at atlassian.com
Wed Feb 4 06:28:38 EST 2009


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3729?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Erik-Berndt Scheper updated HHH-3729:
-------------------------------------

    Attachment: envers-HHH-3729-testcases-and-fix.patch

Revised version of the patch, as it was incomplete.

> @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.5
>            Reporter: Erik-Berndt Scheper
>         Attachments: envers-HHH-3729-testcase.zip, envers-HHH-3729-testcases-and-fix.patch, envers-HHH-3729-testcases-and-fix.patch
>
>
> 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