• Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate getCurrentSession() is necessary to close?  RSS feed

 
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?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!