-->
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: How to change the lazy option at runtime?
PostPosted: Mon May 12, 2008 7:17 am 
Newbie

Joined: Mon May 12, 2008 12:22 am
Posts: 6
Hello,
Actually I have a graph of objects connected to each other; all of the relations are none lazy since this is the default behavior of our business (we are almost navigating the relations).

But for some rare cases & due to the performance issues, I need only one relation to be none lazy & I don’t care with the others (let them null or lazily load them)
Question:
How can I skip (on hibernate level) some of select statements that retrieve child collections (I don’t want to retrieve them totally)?
Or can I change the lazy option for them at runtime to be (true)?


Hope you understand my question


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.