-->
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: Hibernate and MS Sql Server 2005?
PostPosted: Thu Oct 21, 2010 10:09 pm 
Newbie

Joined: Tue Dec 22, 2009 11:52 pm
Posts: 10
We are using hibernate 3. I am using jdbc 3 sqljdb.jar file and seam entity query api.

I am using pagination on server side to talk to sql server 2005. The queries being fired look like-

Code:
select top 25 *
from employee


But I have read in other forums, hibernate and sql server now supports row_num() function, so the sql query being fired should use row_num() but it is not using instead it is top which is really inefficient.

Please clarify me here if hibernate supports row_num function or not, if yes which version, so I can check it out.

Thanks


Top
 Profile  
 
 Post subject: Re: Hibernate and MS Sql Server 2005?
PostPosted: Fri Oct 22, 2010 12:58 pm 
Newbie

Joined: Tue Dec 22, 2009 11:52 pm
Posts: 10
Any one here to reply?


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.