Explain Session object in Hibernate?

devquora
devquora

Posted On: Feb 22, 2018

 

It is used to get a physical connection with a database. A session object is designed to instantiate each time an interaction is required with the database, whereas the persistent objects are retrieved using a session object.
The session objects are not thread-safe and must be created and destroyed as per the requirement.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Hibernate Interview Questions

    What is Hibernate ?

    Hibernate is a free software, which is distributed under GNU Lesser General public license 2.1. It is categorized under the Object Relational Mapping (ORM)...

    Hibernate Interview Questions

    What is HQL in Hibernate?

    HQL is the acronym of Hibernate Query Language.It considers the java objects in a similar way as that of the SQL. It is..

    Hibernate Interview Questions

    Explain the advantages of Hibernate?

    Some of the advantages of Hibernate are: It provides Simple Querying of data. An application server is not required to..