Hibernate is a robust framework for object / relational mapping (ORM) for representing a database in Java objects and vice versa.
It is involved in the persistence of an application layer; he deals with the creation of mapped objects and facilitates the manipulation of these objects.
Hibernate provides a query language to manipulate the mapped objects : HQL (Hibernate Query Language).
It supports databases: MySQL, DB2, Oracle, SQL Server, …
A Hibernate Session is a unit of work involving a set of operations to the database (select, add, update, ..).
Any communication between the application and the database must be made through a Hibernate Transaction.
- Hibernate Hello World (XML Mapping) : Use XML mapping to insert a new record into database table.
- Hibernate Hello World (Annotations) : Hibernate annotation-based mapping example.
- Hibernate One to One XML Mapping Example : Perform one to one association using XML mapping files.
- Hibernate One to One Annotation Example : Perform one to one association using Hibernate annotations.
- Hibernate One to Many XML Mapping Example : Perform one to many association using XML mapping files.
- Hibernate One to Many Annotation Example : Perform one to many association using annotations.
- Hibernate Many to Many XML Mapping : Perform many to many association using XML mapping files.
- Hibernate Many to Many Annotation Example : Perform many to many association using annotations.
- Hibernate Criteria Example : Using the Criteria API to build query.
- Hibernate CRUD example using HQL : Using HQL to perform some useful database operations.
- Hibernate Transaction Management Using Spring : How to implement Hibernate transaction management using Spring Container.
- Struts 1 Hibernate integration example : Integrate Hibernate in a web application developed with Struts 1.
- JSF 2 Spring Hibernate Example : Integrating JSF 2, Spring, Spring Security and Hibernate.