[hibernate-issues] [Hibernate-JIRA] Resolved: (ANN-504) InheritenceType.JOIN does not play well with weak entities mapped with SecondaryTable
Emmanuel Bernard (JIRA)
noreply at atlassian.com
Wed Jan 17 17:51:44 EST 2007
[ http://opensource.atlassian.com/projects/hibernate/browse/ANN-504?page=all ]
Emmanuel Bernard resolved ANN-504:
----------------------------------
Resolution: Rejected
the equivalent of the xml mapping is
@Inheritance(SINGLE_TABLE)
and in the InheritedEntity,
@SecondaryTable(name="inherited_entities")
public class ... {
@Column(name="fld_count", table = "inherited_entities")
public Integer getCount()
> 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