Learn Hibernate and JPA

Master persistence with the Java specification and Hibernate implementation

Learn Java Persistence with JPA/Hibernate

Using an ORM (Object-Relational Mapping) is a standard and naturally very useful approach to persistence. Simply put, it’s buidling an abstraction layer between your domain and the database. This allows us to interact with the database through an OO paradigm.

The JPA specification defines the standard for ORM in Java. And, of course, it’s most often paired in practice with its most popular implementation – Hibernate.

In this course, we’ll start from scratch and get a practical understanding of the two tools and how they’re connected. 

Then, we’ll learn how to map our domain, implement CRUD operations, define constraints, relationships, inheritance, handle different data types. Finally, we’ll dive into more advanced features like transactions, caching, and lazy loading. 

The essential guide for getting started with JPA and Hibernate. The 4 modules cover the initial setup and how to define Java objects as managed entities.

In addition to the basics, you’ll also learn how to map relationships between entities, different data types, strategies for handling auto-generated IDs, how to perform operations on the data, and more.

Everything you need to create a basic persistence layer.

1. Introduction to Hibernate and JPA

3 LESSONS ~ 2 HOURS

  1. ORM Concepts and Introduction(preview lesson)
  2. The Project Overview
  3. Setting up Hibernate and JPA

2. Mappings

5 LESSONS ~ 4 HOURS

  1. Entity Mappings
  2. Mapping Relationships (preview lesson)
  3. Mapping Enum and Date Types
  4. Advanced ID Mapping
  5. Inheritance Mapping Introduction
  6.  Inheritance Mapping Advanced

3. Core Hibernate and JPA Concepts

4 LESSONS ~ 4 HOURS

  1. Basic CRUD Operations
  2. Entity Relationships and Operations
  3. The Entity Lifecycle
  4. JPQL (Jakarta Persistence Query Language)
  5. Criteria API

4. Exploring Hibernate and JPA Features

3 LESSONS ~ 2.5 HOURS

  1. Basics of Transactions and Concurrency
  2. Basic Caching Mechanisms
  3. Lazy vs. Eager Fetching

The lessons in this course are text-based, with a full project backing each one.

Access this course through Baeldung All Access

Our Full Course Library 

IntelliJ Idea Ultimate (6 months free)

JProfiler (6 months free)

All Upcoming Courses (Roadmap)

Certificates of Completion

Multiple-Choice questions in Each Lesson 

Pro Access

Yearly or the Lifetime access

Do you have a team who would benefit from taking the course?

20-Day Money Back Guarantee

I believe strongly in the quality of the course material to teach you the fundamentals of the library. I’ve put a lot of work and care into the material and hope you’re going to use it and to develop and maintain your applications.

I confidently back all courses with a 20-Day Money Back Guarantee. I want you to dive in deep and experience the full wealth of this resource without hesitation.

If the material isn’t a good fit, just contact me within 20 days of purchase, and ask for a full refund for any single course package.