-->
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.  [ 3 posts ] 
Author Message
 Post subject: pagination
PostPosted: Thu May 19, 2005 11:26 am 
Regular
Regular

Joined: Mon Apr 25, 2005 5:36 am
Posts: 103
salut

j'ai une question:

Lorsque je fait cela:

Query q = sess.createQuery("from DepartementBean");
q.setFirstResult(20);
q.setMaxResults(10);
List cats = q.list();


Est-ce que Hibernate charge tout depuis la base de données et ensuite il traite le max et le first.

Ou

Est-ce qu'il ne charge vraiment qu'à partir de la 20e position et 10 résultats?

merci


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 20, 2005 10:38 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
#2

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 23, 2005 9:32 am 
Beginner
Beginner

Joined: Thu Oct 16, 2003 7:30 am
Posts: 21
Location: Brussels
emmanuel wrote:
#2


Seulement dans le cas que le base de donnée (dialect) le supporte?

Johan.


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