The definitive guide to Object-Relational Mapping with Hibernate
Bridging Objects and Databases
Hibernate is a high-performance Object-Relational Mapping (ORM) framework for Java. It maps Java classes to database tables and Java data types to SQL data types, relieving developers from writing tedious JDBC code and raw SQL queries.
Key Features
- HQL (Hibernate Query Language): A powerful query language similar to SQL but fully object-oriented.
- Caching: Hibernate provides an advanced Level 1 and Level 2 caching mechanism to drastically reduce database load.
- Lazy Loading: An optimization technique that delays the initialization of an object until it is explicitly needed, improving application startup and response times.