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

Adam Warski (JIRA) noreply at atlassian.com
Thu Feb 5 02:57:38 EST 2009


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=32313#action_32313 ] 

Adam Warski commented on HHH-3729:
----------------------------------

Or even, to be even more consistent with the JPA naming, how about @AuditAssociationOverride? :)
I know it's a small thing but naming is always important.

> @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