-->
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.  [ 2 posts ] 
Author Message
 Post subject: overriding lazy at runtime
PostPosted: Thu Jun 30, 2005 9:43 am 
Newbie

Joined: Thu Jun 30, 2005 6:36 am
Posts: 4
i have an objectA that hold a lazy collection of other objectsB.
there may be serveral hundred objectsB's hence they are set to lazy load.

basically i am storing objectA in the HttpSession and when i come to use objectA i can no longer get the collection of objectB's as the Hibernate Session is closed.

is there a way to somehow overrided the lazy load option at run time?

or do i have to rework this?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 01, 2005 9:49 am 
Newbie

Joined: Fri Apr 01, 2005 5:21 am
Posts: 11
You can do objectA.getObjectBs().size(); while the hibernate session is open.
This will load the collection into the objectA.


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

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.