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: Eager Query-All
PostPosted: Thu Mar 30, 2006 8:43 am 
Newbie

Joined: Mon Jan 30, 2006 10:53 am
Posts: 3
Simple query:
sess.createQuery("from Cats").list()

Would like to have all Objects matching the query (i.e. all Cats) already fully loaded and not lazy-loaded when actually accessed. How do I do that? Having read the documentation for hours not finding any answer, I now feel really stupid... Thanks for your help!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 30, 2006 12:55 pm 
Newbie

Joined: Wed Dec 21, 2005 3:14 pm
Posts: 3
try to
lazy=false in mappings or
join fetch all objects that you need in select


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.