-->
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.  [ 1 post ] 
Author Message
 Post subject: setMaxResult and setFirstResult not returning anything
PostPosted: Fri Jun 10, 2005 12:31 pm 
Newbie

Joined: Fri Jun 10, 2005 12:25 pm
Posts: 6
Hi I am new to Hibernate and this group as well, first of all please let me know if is this right group to ask following question?

I have following line in my code:
objectsList = mSession.createCriteria(LibraryObject.class).addOrder(Order.asc("partnumber")).setMaxResults(10).list();

This is not returning anything neither throwing excpetion. I am using Hibernate3 and Oracle9. I am also using proper Dialect class for Oracle.

When I enabled the log I found in query rownum_ was not coming as 10 rather it was showing "?", so not sure if I have done anything with mapping or configuration.

Thanks and Regards
Sunil


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.