-->
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.  [ 5 posts ] 
Author Message
 Post subject: How is paging implemented?
PostPosted: Mon Oct 27, 2003 10:28 am 
Newbie

Joined: Mon Oct 27, 2003 10:14 am
Posts: 6
Hi,

After googling around, I've found surprisingly little info on how paging works within Hibernate. I mean.. how to use it is very cut and dry, but I would like to know more about what it's doing.

There are two possibilities that I see..

1) Hibernate makes a normal query but only loads those objects in the specified page
2) Hibernate modifies the query to only return records for the specified page

I guess I could take a look at the actual queries sent.. but if option 2 is used then I quess this would be very database specific, and might not even apply for all databases.

Any insights available?

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 27, 2003 5:28 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
The database dialect is used to determine to appropriate query. Look at the code, the Oracle9Dialect is a good example.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 27, 2003 5:47 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
This stuff is even better in v21branch in current CVS. Big improvement.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 27, 2003 5:57 pm 
Newbie

Joined: Mon Oct 27, 2003 10:14 am
Posts: 6
Thanks for the feedback guys.. that was just what I was looking for.

Can I ask what's drastically improved in the v21 branch?? or do I just have to look at it myself? ;)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 28, 2003 5:48 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
http://www.hibernate.org/44.html

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 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.