Explain hibernate architecture?
Answer / Ruchi Shukla
Hibernate's architecture is composed of several layers:
1. Java Application Layer - Your main application code resides here.
2. Service and Utilities - Contains utility classes, services, and helpers for working with Hibernate.
3. SessionFactory - A factory object responsible for creating Session instances. It's usually created once during application startup and then shared across multiple threads.
4. Session Layer - Represents a single unit of work in the database, providing operations like save, update, delete, and querying data.
5. Connection and Transaction Layers - Manages connections to the database and transactions to ensure data integrity.
| Is This Answer Correct ? | 0 Yes | 0 No |
Should all the mapping files of hibernate have .hbm.xml extension to work properly?
What the core interfaces are of hibernate framework?
What is orm navy?
Can hibernate session have multiple transactions?
Which annotation is used to auto generate primary key?
How to insert data into database using spring mvc and hibernate?
How primary key is created by using hibernate?
How to write update query in hibernate?
What is lazy loading and why is it used for?
What is a one to one function example?
What is persistent state?
What are the major benefits of hibernate?