Java Coder
How does getcurrentsession() method works in hibernate sessionfactory?
1 Answer(s)      a year and 6 months ago
Posted in : Hibernate

Hi,

Please explain how does getcurrentsession() method works in hibernate sessionfactory?

Thanks...

Advertisement
View Answers

January 28, 2014 at 11:00 AM


Dear Friend,

getCurrentSession() obtains the current session. The "current session" refers to a Hibernate Session bound by Hibernate behind the scenes, to the transaction scope.

To know more, read about getCurrentSession() method in Hibernate sessionfactory

Also you can read about Hibernate 4










Related Tutorials/Questions & Answers: