Announcement Announcement Module
Collapse
No announcement yet.
Spring + hibernate with named query Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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?

  • #2
    You can simply use HibernateTemplate.execute(HibernateCallback). You can then just do the normal Hibernate things.

    http://www.springframework.org/docs/...rnateCallback)

    Comment

    Working...
    X