I'm trying to implement pagination in Hibernate for a native Sql Query. I am using Query query = Session.createSQlQuery(Sql_Query); for executing query. How can I implement/add pagination in it?
            Asked
            
        
        
            Active
            
        
            Viewed 593 times
        
    1
            
            
        1 Answers
0
            
            
        AFAIK there is no default method for it, if you are using native sql then use limit and offset in your query to achieve the same.
EDIT 1
For your query in comment:
I'm not very much familiar with MS SQL but I found this pages that can help you to kick off:
- For more search on net.... :)
 
- 
                    Hey Harry,Thanks for the quick reply... I am new to MS SQL Database. so, Can u help me how to achieve this in MS Sql Server 2008 version ? – Raju Aug 05 '13 at 10:52