Package org.springframework.orm.hibernate

Examples of org.springframework.orm.hibernate.HibernateCallback


  /* (non-Javadoc)
   * @see com.apress.prospring.data.EntryDao#getMostRecent(int)
   */
  public List getMostRecent(final int count) {
    return (List) getHibernateTemplate().execute(new HibernateCallback() {

      public Object doInHibernate(Session session) throws HibernateException, SQLException {
        Query query = session.createQuery("from Entry");
        query.setMaxResults(count);
        return query.list();
View Full Code Here

TOP

Related Classes of org.springframework.orm.hibernate.HibernateCallback

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.