[
http://opensource.atlassian.com/projects/hibernate/browse/EJB-346?page=co...
]
Emmanuel Bernard commented on EJB-346:
--------------------------------------
We can play words for ever. I don't see this as a deviation from the spec for various
reasons. The primary ones being that we pass the TCK and most uses of
"non-indexed" List or raw Collection are erroneous and should semantically be
Sets. The limitation you encounters does not appear for true Lists and for Sets.
Anyway, HHH-1718 is the solution, that's the only thing that matters. Reality is the
work needed to make this issue history is not trivial.
Hibernate is not JPA compliant when using multiple EAGER OneToMany
relationships
--------------------------------------------------------------------------------
Key: EJB-346
URL:
http://opensource.atlassian.com/projects/hibernate/browse/EJB-346
Project: Hibernate Entity Manager
Issue Type: Bug
Affects Versions: 3.3.0.ga
Reporter: Doug Bateman
JPA compatibility is broken when mapping a JPA object with multiple eagerly loaded
one-to-many mappings. Specifically, Hibernate's behavior is as follows:
+ If a JPA persistent object has multiple fields with
"(a)OneToMany(fetch=FetchType.EAGER)" Hibernate throws "HibernateException:
cannot simultaneously fetch multiple bags"
+ This issue is fixed only when the user adds the Hibernate specific annotation
@Fetch(FetchMode.SUBSELECT)
To be JPA compliant, Hibernate must be able to map any JPA compliant object, without
requiring additional Hibernate specific annotations. JPA expressly allows multiple
one-to-many mappings (with the implied assumption that subselects are used by default in
this case).
--
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira