开发者

whats similar like spring to execute hibernateTemplate.findByCriteria(detachedCriteria) in struts & Hibernate?

开发者 https://www.devze.com 2023-02-19 15:16 出处:网络
What\'s similar like spring to execute hibernateTemplate.findByCriteria(detachedCriteria) in struts & Hibern开发者_开发技巧ate?

What's similar like spring to execute hibernateTemplate.findByCriteria(detachedCriteria) in struts & Hibern开发者_开发技巧ate?

In spring we can execute hibernateTemplate.findByCriteria(detachedCriteria) using HibernateTemplate of Spring, but how can we execute that detached criteria using hibernate session?

session.SOMETHING(detacherdCriteria); OR something else ?


I got my answer:

detachedCriteria.getExecutableCriteria(session).list();
0

精彩评论

暂无评论...
验证码 换一张
取 消