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!
|