[hibernate-issues] [Hibernate-JIRA] Commented: (EJB-266) lazy initialization of one-to-many bidirectional relationships through cascade.persist

Emmanuel Bernard (JIRA) noreply at atlassian.com
Wed Feb 7 01:15:40 EST 2007


    [ http://opensource.atlassian.com/projects/hibernate/browse/EJB-266?page=comments#action_26009 ] 

Emmanuel Bernard commented on EJB-266:
--------------------------------------

hi, can you actually attach your sample project so that I'm sre I can reproduce the issue

> 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

>
>
> 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