[hibernate-issues] [Hibernate-JIRA] Updated: (EJB-266) lazy initialization of one-to-many bidirectional relationships through cascade.persist
sara forghani (JIRA)
noreply at atlassian.com
Wed Feb 7 09:12:40 EST 2007
[ http://opensource.atlassian.com/projects/hibernate/browse/EJB-266?page=all ]
sara forghani updated EJB-266:
------------------------------
Attachment: persist-test-case.zip
> lazy initialization of one-to-many bidirectional relationships through cascade.persist
> --------------------------------------------------------------------------------------
>
> 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
> Priority: Critical
> 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.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list