public Object doInHibernate(Session session) throws HibernateException { Query q = session.createQuery(dql); q.setFirstResult(size); q.setMaxResults(rInfo.getPageSize()); return q.list(); } We need to make sure the value of parameter of query.setFirstResult is bigger than 0. And it seems that we can also check if hibernate.jdbc.use_scrollable_resultset is set to true. I didn't try this for I resolve this issue by setting the ...
This is my study note about hibernate, which is written around two years ago. Hibernate =========================================================== Books: Java Persistence with Hibernate Database Manipulation ----------------------------------------------------------- Process of retrieveing objects * Search in the Session Cache. * Search in the "NonExists" record * Search in the sessionFactory Cache if it could. * Select SQL, (add the infomation in the "NonExists" record if object ...
HQL http://www.hibernate.org/hib_docs/nhibernate/html/queryhql.html BaseDAO http://www.koders.com/java/fid79A3087E1148CE1F7E44FB92DA3E1D6BD8B62DC8.aspx?s=hibernate#L1 CoolSample http://svn.apache.org/repos/asf/roller/branches/roller_3.0/src/org/apache/roller/business/hibernate/HibernateRefererManagerImpl.java http://www.koders.com/java/fidA60C168CC1294821210D40681702FC0489E526BC.aspx?s=hibernate#L16 http://www.koders.com/java/fidAE88092715E8DA77024EA1DBFAD9FE19CAC2DA21.aspx FYI
Hi All, It is interesting. ...
These two days, I was working on getting timezone information from oracle using Hibernate. The version of Hibernate is 3.2.4. I found that the return value always returned a Calendar with the tomcat server's timezone when we were getting a Calendar field. My environment: a column with data type ...