-->
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: How can we Achieve FETCH ONLY 'N' Clause functionality in HB
PostPosted: Mon Aug 07, 2006 12:35 pm 
Newbie

Joined: Tue Aug 01, 2006 8:31 am
Posts: 6
HI ALL,

I have to fetch n records from a table. But that n is a dynamic parameter i am passing to the query.

How will do this in Hibernate.

My requirement is like FETCH ONLY N clause in DB2.

Please help me out its an urgent requirement for me.

Regards,
Sreenivasula Reddy A


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 07, 2006 12:44 pm 
Regular
Regular

Joined: Mon Jun 13, 2005 12:21 pm
Posts: 61
Location: Hannover
Set you're DIALECT to DB2 and use
setFirstResults() and/or setMaxResults()

http://www.hibernate.org/hib_docs/v3/re ... yhql-joins

Joerg


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.