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



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

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


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

 

 

DMCA.com