-->
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: "select first" in HQL??
PostPosted: Mon Sep 13, 2004 11:13 am 
Newbie

Joined: Mon Aug 16, 2004 3:49 am
Posts: 9
Location: Austria
hi,

is it possible, to create a hql-query that returns the first X rows of a table (ordered by an attribut) like in sql? i want to have the same result than an sql-query of the form "SELECT FIRST 10 * FROM Report ORDERED BY startdate"

is this possible in hql?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 13, 2004 1:21 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
setFirstResult()
setMaxResult()
Check the reference guide

_________________
Emmanuel


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.