-->
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: is paging saved in session or DB
PostPosted: Tue May 30, 2006 8:38 am 
Newbie

Joined: Wed May 17, 2006 5:10 am
Posts: 14
Hi every body,
i want to know if setFirstResult() and setMaxResult() and rownum functions get the whole data from database and then the session divides the result to pages
OR
hibernate asks the database for a certain number of records so the session remains clean and the DB is the one responsible for the paging operation ????????

thank you


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 30, 2006 1:06 pm 
Beginner
Beginner

Joined: Tue May 30, 2006 6:03 am
Posts: 20
Location: London
apparently it amends the hql to only pull back the necessary entries - see http://blogs.warwick.ac.uk/kieranshaw/e ... _built_in/ (seems to add where clause entries)


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.