[
http://opensource.atlassian.com/projects/hibernate/browse/EJB-266?page=all ]
Emmanuel Bernard updated EJB-266:
---------------------------------
Summary: Avoid collection loading during cascaded PERSIST (improving performance
on heavily cascaded object graphs) (was: lazy initialization of one-to-many bidirectional
relationships through cascade.persist)
Fix Version: 3.2.2
Assign To: Emmanuel Bernard
Avoid collection loading during cascaded PERSIST (improving
performance on heavily cascaded object graphs)
----------------------------------------------------------------------------------------------------------
Key: EJB-266
URL:
http://opensource.atlassian.com/projects/hibernate/browse/EJB-266
Project: Hibernate Entity Manager
Type: Bug
Components: EntityManager
Versions: 3.2.1
Environment: hibernate 3.2.2, hibernate-entitymanager 3.2.1.ga
Reporter: sara forghani
Assignee: Emmanuel Bernard
Priority: Critical
Fix For: 3.2.2
Attachments: persist-test-case.zip
hibernate initializes lazy objects traversed by the persist operation;
for example, in this case (the project is attached):
class A has bidirectional one-to-many relationship to classes B1, B2, B3, B4
(b1List, b2List, b3List, b4List)
B1 has bidirectional one-to-many relationship to C1
(c1List)
B2 has bidirectional one-to-many relationship to C2
(c2List)
if we try persisting C2, it will also initialize B1, C1, B4 ... and other existing
C2's
(you may find a more complete description of the issue at
http://forum.hibernate.org/viewtopic.php?p=2340004#2340004)
--
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