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. Plz show me how to use main method reccurssively p
View Tutorial          By: Jyoti Bankar at 2011-07-14 10:31:53

2. Thank alot
View Tutorial          By: Naganatarajan at 2010-01-07 05:54:17

3. import java.util.*;

public class de

View Tutorial          By: Virudada at 2012-05-05 06:27:22

4. Hi people,
for those getting the Time out

View Tutorial          By: Ramlak at 2008-05-08 08:28:29

5. char *s;
s=(char *) melloc(sizeof(char)*3);

View Tutorial          By: URS at 2011-08-24 12:32:55

6. it is possible to write any synchronisation progra
View Tutorial          By: shashi kant mishra at 2013-10-14 02:54:25

7. i like java language.
View Tutorial          By: deepika at 2014-09-22 15:11:39

8. Actually in gallery example the images can be move
View Tutorial          By: santu at 2013-02-16 12:40:29

9. not bad
View Tutorial          By: JUST_PREET at 2013-03-06 11:37:15

10. Hi, I implemented those project in my NetBeans, cr
View Tutorial          By: Leshqo at 2008-11-14 07:09:13