[hibernate-issues] [Hibernate-JIRA] Commented: (ANN-504) InheritenceType.JOIN does not play well with weak entities mapped with SecondaryTable

Alec Lanter (JIRA) noreply at atlassian.com
Mon Dec 4 14:07:04 EST 2006


    [ http://opensource.atlassian.com/projects/hibernate/browse/ANN-504?page=comments#action_25555 ] 

Alec Lanter commented on ANN-504:
---------------------------------

Gah, fat fingers. :P  ANN-391 is the reference I meant to make.

> InheritenceType.JOIN does not play well with weak entities mapped with SecondaryTable
> -------------------------------------------------------------------------------------
>
>          Key: ANN-504
>          URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-504
>      Project: Hibernate Annotations
>         Type: Bug

>     Versions: 3.2.0.ga
>  Environment: Hibernate 3.2.1; db is irrelevant, as sessionfactory will not build
>     Reporter: Alec Lanter
>  Attachments: Tests.zip
>
>
> When binding a weak entity to a class using @SecondaryTable, @Embedded, and @AttributeOverride (see attached source), Hibernate complains that the secondary table cannot be found when the original containing entity is subclassed.  This is an annotation-specific issue, as XML-based mapping documents support using <subclass> as an alternative to <joined-subclass> when the parent class contains the joined component (see Entity.hbm.xml), but annotations appear to treat all JOINED inheritance types as a <joined-subclass> mapping.

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