Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Hibernate How does getcurrentsession() method works in hibernate sessionfactory?

Have Programming Question? Ask it here!
 
 
 


Java Coder
How does getcurrentsession() method works in hibernate sessionfactory?
1 Answer(s)      6 months and 5 days 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:
Advertisements
 

 

 

DMCA.com