-->
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: unnecessary loading of a lazy collection on flush
PostPosted: Tue May 26, 2009 5:54 am 
Newbie

Joined: Tue May 26, 2009 5:35 am
Posts: 7
Hello,

I'm using Hibernate 3.2.4.sp1 via JPA together with a JSF and Seam. I only use persistent objects, nothing is detached. I use only LAZY mappings of collections. There are 2 PERSIST cascades, one on a collection, the other on an association.

The scenario with the problem is the following: I'm loading two entities in the persistence context. I do some work, including some other entities creation. Then I persist the new entities and flush the (same) persistence context. Upon flushing all the lazy collections of the two loaded entities are retrieved from the database (as SQL logs say). Why is this happening, am I missing something? Can I disable this loading?

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.