-->
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: Getting vendor specific clause in select into HQL
PostPosted: Wed Feb 09, 2005 12:05 pm 
Beginner
Beginner

Joined: Thu Oct 14, 2004 9:50 am
Posts: 43
Hibernate version: 2.1.7

Name and version of the database you are using: Ingres r3

The RDBMS support a 'first x' clause to limit the number of results, as in:
select first 10 apple.color from apple

Is there any way i can use this in an HQL query? Perhaps by appending to the dialect?

thank you,

- edward


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 09, 2005 12:13 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
query.setMaxResults()


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 09, 2005 12:15 pm 
Beginner
Beginner

Joined: Thu Oct 14, 2004 9:50 am
Posts: 43
Hi,
I actually need to use it in a subselect, not the top-level query.

tnx


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.