-->
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: Search returns 10 records instead of the set maxResults
PostPosted: Tue Jun 17, 2008 5:00 pm 
Newbie

Joined: Tue Jun 17, 2008 3:15 pm
Posts: 1
Hibernate version: 3.2.6
Oracle

Hello!

When I try to get the first 25 results of my search, I only get the first 10 back. When I paginate to the next consecutive pages, I get 25 records each and they are in the correct order. maxResult is set to 25 in all instances and firstResult is set accordingly.

I got it to work by setting the fetchSize to 25. Is this the best way to do it or there's another way? Shouldn't setting the maxResult be able to take care of this? Also, does anyone have an explanation as to why it gets only 10 for the first page and 25 for the next?

Thanks!


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.