Jan 18th, 2007, 01:14 AM
Spring + hibernate with named query
I was trying to use the spring hibernate template. However, I couldn't find a way to specify setFirstResult using named queries. This option is available with criteria searching. Is there any reason why it's not available when I do getHibernateTemplate().find or getHibernateTemplate.findByNamedQuery()? Did I miss something?
Jan 18th, 2007, 03:11 AM
You can simply use HibernateTemplate.execute(HibernateCallback). You can then just do the normal Hibernate things.