Hibernate is an Object Relational Mapping (ORM) tool for Java language. It is an open source framework created by Gavin King in 2001. Hibernate maps object-oriented domain model to a relational database. Hibernate is a pure persistence framework which directly maps the Java class to Database tables. It auto generates SQL and hence reduces the complexity involved in persisting data.
Hibernate Basics
Hibernate Hello World Example – XML Configuration
In this Example, let’s write our first Hibernate Hello World program which will persist Java object into the database using XML configuration
Hibernate Hello World Example – Annotation
In this Example, let’s write Hibernate Hello World program which will persist Java object into the database using annotations.
Hibernate Composite Primary Key – composite-id tag & Annotations
In this article, we will learn how to define Composite Primary Key using <composite-id> tag and Annotations.
Component Mapping in Hibernate Using Annotations
In this example, we will learn about Component Mapping in Hibernate Using Annotations. Component Mapping represents the has-a relationship, the composition is stronger association where the contained object has no existence of its own.
Hibernate Embeddable Composite Primary Key
In this example, we will be declaring the IDs (Primary Key fields) as a separate class annotated with @Embeddable annotation.
Difference between session.get() and session.load()
In this example, let’s learn the difference between session.get() and session.load()
Hibernate CRUD Example
In this Hibernate CRUD Example, we will learn how to use Hibernate to perform CRUD operations using XML Mapping.
Hibernate Mapping
Hibernate One To One Bidirectional Mapping with Primary Key – XML Configuration
In this Hibernate One To One Mapping Example, we will learn how to do One To One Mapping in Hibernate using XML Configuration
Hibernate One To One Bidirectional Mapping with Primary Key – Annotation
In this Example, we will learn how to do One To One Mapping in Hibernate using Annotations.
Hibernate One To One Mapping with Foreign Key – XML Configuration
In this article, we will learn about Hibernate One To One Mapping with Foreign Key.
Hibernate One To One Bidirectional Mapping with Foreign Key – Annotation
In this Example, we will learn how to do One To One Bidirectional Mapping in Hibernate with Foreign Key using Annotations.
Hibernate One To Many Mapping – XML Configuration
In this article, we will learn about Hibernate One To Many mapping between Java objects and database tables using XML Configurations
Hibernate One To Many Mapping – Annotation
In this article, we will learn about Hibernate One To Many mapping between Java objects and database tables using Annotations.
Hibernate Many To Many Mapping – XML Configuration
In this article, we will learn about Hibernate Many To Many mapping between Java objects and database tables using XML Configurations
Hibernate Many To Many Mapping – Annotation
In this article, we will learn about Hibernate Many To Many mapping between Java objects and database tables using Annotations
Hibernate Inheritance
Table Per Class Hierarchy – XML Mapping & Annotation
In this article, we will be have a single table for holding all the values and there will be a discriminator column which separates the class which is updating the table.
Table Per Subclass Hierarchy – XML Mapping & Annotation
In this Table per Subclass Hierarchy Example, subclass table will be mapped to the Parent class table by primary key and foreign key relationship.
Table Per Concrete Class Hierarchy – XML Mapping & Annotation
In this Table Per Concrete Class Hierarchy individual table will be created for each class.