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. You should give more specification on exactly whe
View Tutorial          By: Abhijit at 2013-03-09 20:14:21

2. Hii,,,i have a java server socket program and i wa
View Tutorial          By: prawinmasthan at 2012-01-13 08:38:35

3. please give some examples of postfix and infix.
View Tutorial          By: john mark at 2012-10-07 13:55:04

4. hi every body i want full java code to send messag
View Tutorial          By: Yous at 2010-12-26 06:45:30

5. nice code.....
View Tutorial          By: ♥♠darryl♠♥ at 2009-02-19 06:24:12

6. thank you so much i satisfied for the tutorial in
View Tutorial          By: flick at 2010-09-24 21:10:59

7. buffer reader??????????????????
View Tutorial          By: sunil bisht at 2010-10-21 02:05:38

8. Good One..
View Tutorial          By: Subhranil Mukherjee at 2015-03-11 07:22:18

9. Good day. I managed to get the application to work
View Tutorial          By: thabiso at 2011-06-03 09:21:32

10. I am a B. Tech. (ECE) student, can i also give scj
View Tutorial          By: Sneha Agarwal at 2013-07-11 08:10:17