Comment on Tutorial - Paging Through the Result Set in Hibernate By Sumit Pal



Comment Added by : Roshan

Comment Added at : 2011-05-02 12:06:27

Comment on Tutorial : Paging Through the Result Set in Hibernate By Sumit Pal
Hi Along with your provided code below, if we are looking for total number of rows (only count) then what we need to do?:

Query query = session.createQuery("from Product");
query.setFirstResult(1);
query.setMaxResults(2);
List results = query.list();
displayProductsList(results);

Thanks in advance,
Regards,
Roshan


View Tutorial



Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. it is very useful and in understandable manner
View Tutorial          By: Deepika at 2012-03-26 05:10:15

2. Good morning!
I need help about how to conf

View Tutorial          By: alpha at 2009-06-14 03:20:41

3. I'm a beginner, and I was told it is a good practi
View Tutorial          By: Nelson at 2009-08-17 09:13:28

4. Hi,
really nice article. but still have on

View Tutorial          By: Yogesh Rishipathak at 2009-06-04 02:25:06

5. recursive programs that ask the user to enter the
View Tutorial          By: siyabonga at 2011-08-10 08:34:44

6. ----- main---
Inside Run ...
OK 0 <

View Tutorial          By: pushpam at 2009-01-23 06:14:07

7. good but i needed you to implenent linked list usi
View Tutorial          By: emmanueli at 2011-06-08 10:08:16

8. Could you please explain how to define our own val
View Tutorial          By: xxxxx at 2010-06-30 06:41:14

9. Can anybody help me to send the code for email sen
View Tutorial          By: satendra at 2010-03-23 02:46:18

10. its work well , thanks for code , but if any body
View Tutorial          By: mary at 2007-12-16 07:10:58