-
Jan 18th, 2007, 01:14 AM
#1
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
#2
You can simply use HibernateTemplate.execute(HibernateCallback). You can then just do the normal Hibernate things.
http://www.springframework.org/docs/...rnateCallback)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules