• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate getCurrentSession() is necessary to close?

 
stshiva raaj
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I used a single session per thread request. I have transaction open and commit. Correct me If I wrong "getCurrentSession and openSession need to close the session by us" right?. For both I used code to explicitly close the session using HibernateSessionFactory.closeSession(). Does Hibernate close the session automatically?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic