-->
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: Next and Previous logic
PostPosted: Fri Feb 23, 2007 1:57 am 
Newbie

Joined: Fri Feb 23, 2007 1:29 am
Posts: 1
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:3.0

Hi,

I have 10,000 records in database(Oracle). I want to display that content 5 records per page. How handle that Privious and Next 5 records logic. I done this one retrieve all records in to Arraylist and then displayed.
But it takes lot of memory. I want in this way ....

If i click next button next 5 records getting from db and then displaying that records and .......like previous also...


How to handle this one using hibernate3.0.(I done this one using JDBC api.. I got resultset object and then implemented that above logic)?


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.