Hibernate is a Java-based framework for persisting and managing data in a relational database. A typical Hibernate syllabus might include the following topics:
- Step 1-Introduction to Hibernate and ORM (Object-Relational Mapping)
- Step 2 – Configuring Hibernate
- Step 3- Hibernate Mapping Files Setup
- Step 4- States of objects in hibernate
- Step 5- Working with Persistent Objects
- Step 6 – 11 Methods of hibernate
- Step 7- Types of Mapping in Hibernate
- Step 8 – Hibernate Query Language (HQL)
- Step 9 – Criteria Queries
- Step 10 – Transactions and Concurrency
- Step 11- Caching in hibernate
Hibernate framework has a layered architecture that consists of several components, here is a basic diagram that illustrates the main components of the Hibernate architecture:
+-------------------+
| |
| Application Code |
| |
+-------+------------+
|
|
|
+-------+------------+
| |
| Hibernate API |
| |
+-------+------------+
|
|
|
+-------+------------+
| |
| Hibernate Impl |
| |
+-------+------------+
|
|
|
+-------+------------+
| |
| Database |
| |
+-------------------+
- Application code: This is the code that you write to interact with the Hibernate API.
- Hibernate API: This is the set of classes and interfaces that make up the public face of Hibernate.
- Hibernate Impl: This is the implementation of the Hibernate API.
- Database: This is the relational database that Hibernate interacts with.