Whiteship
  • Home
  • 인프런 강의
  • Java
  • Spring
  • JPA
  • SDE Tips
Subscribe

Session API

A collection of 2 posts
hibernate

레퍼런스 12장에 오타

문제가 발생한 코드는 Spring Reference에 있던 소스 코드입니다. public class ProductDaoImpl extends HibernateDaoSupport implements ProductDao { public Collection loadProductsByCategory(String category) throws DataAccessException, MyException { Session session = getSession(getSessionFactory(), false); try { List result = session.find( "from test.Product product where product.category=?", category, Hibernate.STRING); if (result
Apr 24, 2007 — 2 min read
Session API

Hibernate에서 쿼리 날리는 방법

참조 : http://openframework.or.kr/JSPWiki/Wiki.jsp?page=Javacanhibernate7 http://www.hibernate.org/hib_docs/v3/api/org/hibernate/Session.html 1. HQL 사용하기. Query [http://www.hibernate.org/hib_docs/v3/api/org/hibernate/Query.html] createQuery [http://www.hibernate.org/hib_docs/v3/api/org/hibernate/Session.
Jan 19, 2007 — 1 min read
Whiteship © 2022
Powered by Ghost