title: How to use pagination in spring mvc and hibernate application
body: <p>I have developed spring MVC + MySQL and hibernate application</p>
  
  <p>It handles the more than thousands of records. Here, I am using dataTable for displaying records. It working fine. But, my problem is performance issue for record loading..</p>
  
  <p>When i execute the query in db server, it takes fraction of seconds to loading a thousands of records. but while i using a query via my app it takes more than 5 sec.</p>
  
  <p>I think the dataTable pagination takes too much time to loading the records.. How can i resolve this type of issues. I have realize the solution is only for server side pagination.</p>
  
  <p>I don't know how to make a these type of pagination like "Prev 1 2 3 4 5 Next" with searching and sorting controls in server side.</p>
  
  <p>So, please advice me how can i display the records from above requirements in my app.
  small piece code may more helpful for my knowledge growth.</p>