]
Steve Ebersole updated HHH-5965:
--------------------------------
Priority: Major (was: Critical)
Issue Type: Bug (was: Improvement)
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
Environment: All
Reporter: Andrea Folli
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: