Hibernate - What are the core interfaces of Hibernate framework?

What are the core interfaces of Hibernate framework?

1. Session Interface : The basic interface for all hibernate applications. The instances are light weighted and can be created and destroyed without expensive process.

2. SessionFactory interface : The delivery of session objects to hibernate applications is done by this interface. For the whole application, there will be generally one SessionFactory and can be shared by all the application threads.

3. Configuration Interface : Hibernate bootstrap action is configured by this interface. The location specification is specified by specific mapping documents, is done by the instance of this interface.

4. Transaction Interface : This is an optional interface. This interface is used to abstract the code from a transaction that is implemented such as a JDBC / JTA transaction.

5. Query and Criteria interface : The queries from the user are allowed by this interface apart from controlling the flow of the query execution.

What are the core interfaces of Hibernate framework?

- Configuration interface
- Transaction interface
- Query and Criteria interfaces
- Session interface
- SessionFactory interface
Hibernate - Explain how to configure Hibernate.
Explain how to configure Hibernate - Hibernate uses a file by name hibernate.cfg.xml. This file creates the connection pool and establishes the required environment....
Hibernate - What is a HibernateTemplate?
What is a HibernateTemplate? - HibernateTemplate is a helper class that is used to simplify the data access code.
Hibernate - What are the benefits of HibernateTemplate?
What are the benefits of HibernateTemplate? - HibernateTemplate, which is a Spring Template class, can simplify the interactions with Hibernate Sessions...
Post your comment