How to get session object in hibernate?
Answer / Puneet Kumar Bhardwaj
To obtain a Session object in Hibernate, you can call the `getCurrentSession()` method on your Hibernate util class (such as `HibernateUtil`) or create a new one using `Factory.openSession()`.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the basic hibernate persistent annotations?
What are the benefits of orm and hibernate?
What is meant by unidirectional and bidirectional?
How to fetch foreign key data in hibernate?
What is the difference between persist and save in hibernate?
How to bind hibernate session factory to jndi?
What does session lock () method do in hibernate?
What is transaction management in hibernate?
What is the difference between merge and update method?
What is one to many relationship hibernate?
What is the difference between sorted and ordered collection in hibernate?
What is hql in hadoop?