In real time which one is recommended among HibernateTemplate
, sessionFactory.openSession()
or sessionFactory.getCurrentSession()
?
And in your experience, what is used from the above mentioned in live running web project with spring mvc+ hibernate ?