Question: What is the difference between getCurrentSession() and openSession() in Hibernate?

What is the difference between getCurrentSession()

and openSession() in Hibernate?

Step by Step Solution

3.36 Rating (159 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

In Hibernate both t C u r r e n t S e s s i o n t C u r r e n t S e s s i o n and o p e n S e s s i o n o p e n S e s s i o n methods are used to get ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Advanced Java Programming Questions!