Hibernate Tutorial

hibernate thumbnail

Hibernate ORM enables developers to more easily write applications whose data outlives the application process. As an Object/Relational Mapping (ORM) framework, Hibernate is concerned with data persistence as it applies to relational databases (via JDBC).Hibernate ORM enables developers to more easily write applications whose data outlives the application process. As an Object/Relational Mapping (ORM) framework, Hibernate is concerned with data persistence as it applies to relational databases (via JDBC).

Object Relational Mapping(ORM) in Java

By Dhiraj 23 February, 2017 32K

This article provides an insight of Object Relational Mapping. Starting from what is ORM, we will deep dive into its different concepts, facts to different ORM tools available, especially Hibernate in java, evolution from plain JDBC to ORM tool and how ORM tools have made developers life easy while dealing with tabular data format....

Read now➤

Hibernate Annotations Example

By Dhiraj 26 February, 2017 10K

Defining hibernate metadata using annotations is very common and there are lot of hibernate annotations available. This article will cover hibernate annotations that are required to get started with hibernate. We will be creating a simple hibernate example using hibernate annotations and...

Read now➤

Hibernate One to One Mapping Example(Annotation Based)

By Dhiraj 27 February, 2017 26K

This post is continuation to my last post - hibernate annotations. Here we will be discussing about hibernate one to one mapping in detail with an example. We will take a look into both unidirectional and bidirectional one to one realationship and even discuss about different optional annotations used in one to one mapping such as mappedBy, CascadeType,...

Read now➤

Hibernate One to Many Relationship Example(Annotation Based)

By Dhiraj 01 March, 2017 28K

In this article we will be discussing about one to many relaionship in hibernate with annotations based configuration. We will be creating a simple employee - department one to many relationship and discuss the different annotations used in the example. We will be also discussing about...

Read now➤

Hibernate Many to Many Mapping Example(Annotation Based)

By Dhiraj 03 March, 2017 12K

In this example we will be discussing about Many To Many mapping in hibernate with an example. We will take a look into how we make use of @JoinTable annotation along with mappedBy atribute in hibernate many to many example....

Read now➤

Hibernate Inheritance Example (Single Table, Table Per Class, Joined Table Strategy)

By Dhiraj 04 March, 2017 36K

This article is about hibernate inheritance. Here we will be disussing about the different inheritance strategy supported by hibernate such as Single Table Strategy, Table per class strategy and Joined strategy along...

Read now➤

Hibernate Criteria Tutorial with Examples (Joins, Sub Query, Sorting)

By Amit Swain 09 March, 2017 44K

As we know hibernate criteria is a very important aspect of Hibernate framework as it simplifies the way to fetch tabular data from DB. In this article, we will be discussing about different examples on hibernate criteria. Starting from what is criteria, we will look into how to construct criteria...

Read now➤

Different Hibernate Naming Strategy

By Dhiraj 20 January, 2018 55K

This article discusses about different naming strategy provided by hibernate along with the shift of naming strategy from hibernate.ejb.naming_strategy in hibernate 4 to hibernate.implicit_naming_strategy and hibernate.physical_naming_strategy in hibernate 5.And at the end, we wil be take a look into implementing a custom naming strategy in hibernate and configuration to run with spring boot application....

Read now➤