[hibernate-issues] [Hibernate-JIRA] Reopened: (HHH-5965) In JPA 2.0 no way to use SINGLE_TABLE for entity subclass included in associations @OneToMany
Steve Ebersole (JIRA)
noreply at atlassian.com
Wed Aug 31 13:10:04 EDT 2011
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-5965?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steve Ebersole reopened HHH-5965:
---------------------------------
Grr, forgot to disassociate fix-for version
> In JPA 2.0 no way to use SINGLE_TABLE for entity subclass included in associations @OneToMany
> ---------------------------------------------------------------------------------------------
>
> Key: HHH-5965
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5965
> Project: Hibernate Core
> Issue Type: Bug
> Components: core
> Affects Versions: 3.6.1
> Reporter: Andrea Folli
> Assignee: Steve Ebersole
> Labels: jpa2
> Fix For: 4.0.0.CR2
>
>
> We use SINGLE_TABLE Mapping Strategy to collapse on a single table several Entity Classes sharing a lot of persistent fields.
> When two of these entities are associated to a master entity via @OneToMany and we load the master entity with FetchType.EAGER for the two associations, we get a ClassCastException due to a bad behavoiur of Hibernate..
> In fact it loads for both associtions all the entities associated by FK to the master entity, (regrdless of Discriminator Values).
> We know there is the @ForceDiscriminator annotations, but there is not an equivalento in JPA 2.0 implemenmtation,
> Please can you reveal your strategy for this issue?
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list