-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: POJO detachment and Hibernate
PostPosted: Thu Dec 07, 2006 5:05 pm 
Newbie

Joined: Thu Dec 07, 2006 4:11 pm
Posts: 12
Hello,
within the framework of the development of an application J2EE using Spring 2.0 and Hibernate 3.1, I have a problem on the level of the beans. I am explained, one of my beans allows to post the data of a process in the shape of a tree (use of icefaces). A process contains a collection of objects which them same contain collections objects. I defined the loading of the collections in lazy=true in the Hibernate mapping. The problem is that when the bean responsible for the construction of the tree calls the compromise service for the data loading, only the objects of the collection of the process are loaded and when the construction of the first level of the tree is finished and that the bean request information on the collections in lazy=true, synchronization with the initial session hibernate is lost. I let Spring manage the sessions of each transaction automatically. I have just read not badly documents on the concept of attachment/detachment from POJOs but the examples are not very clear and do not take into account a Spring/Hibernate architecture.
Or must I make my attachments? On the level of DAOs ? in the beans ? Are the detachments made all only with the closing of the transaction or must I even manage them me? Have you some relevant links or tutorials on these concepts ?
In advance thank you….


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.