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



Subscribe to Tutorials

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. org.replaceAll("is","was"); en
View Tutorial          By: nirosha at 2013-01-28 16:19:11

2. Hi.....u have put an extra backslash in the last f
View Tutorial          By: Samantha at 2011-05-12 12:54:39

3. the example program is very simple to understand a
View Tutorial          By: Zubilu at 2010-10-06 00:19:13

4. HI . i got the following exception while start up
View Tutorial          By: Ramesh at 2011-02-01 00:14:14

5. yes,it is a very nice example for abstract classe
View Tutorial          By: saranya at 2010-07-16 05:56:53

6. Hi Binod,

Since JSP code is execute

View Tutorial          By: Aathi at 2009-05-28 21:20:10

7. NICE EXPLANATION >>>THANK UUUUUU
View Tutorial          By: PraVeen at 2012-07-05 10:12:25

8. Thank you for giving info.
View Tutorial          By: Deepak cheela at 2013-01-23 07:03:08

9. I am getting following error, I am using samsung m
View Tutorial          By: Ashok at 2013-08-17 05:29:02

10. in this matter i get also this exception :

View Tutorial          By: oded at 2008-09-28 05:41:35