-->
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: fetch_size set to 200, but hibernate hydrates ALL entities
PostPosted: Tue Jul 20, 2004 10:55 pm 
Newbie

Joined: Tue Jun 29, 2004 5:04 am
Posts: 8
Hi All!

I have set the fetch size in jboss-service.xml to 200.

I do a session.find( " my query " ) that returns about 2000 records.

I only use the first 200 records, until the user clicks next on his screen, where I would using records 201-400.

However, in the log, I get 2000 of these debug statements:
Code:
DEBUG [net.sf.hibernate.loader.Loader] Hydrating entity: net.kaypee.User#XXXXX


What do I need to do, so that hibernate only hydrates the set of 200 POJOs I require?

TIA,

Kunal


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 21, 2004 5:36 am 
Regular
Regular

Joined: Tue Oct 28, 2003 8:25 am
Posts: 72
Location: Belgium
see http://www.hibernate.org/116.html#A27


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.