Skip to content
UdemyJava Spring FrameworkPaid courseAll LevelsCertificate

Master Hibernate and JPA with Spring Boot in 100 Steps (Udemy.com)

Learn Hibernate, JPA (Java Persistence API) and Spring Data JPA using Spring and Spring Boot

Created by: in28Minutes Official

Last updated January 2026

icon
What you will learn

  • You will learn the basics of JPA and Hibernate - Entities, Relationships, Inheritance Mappings and Annotations
  • You will understand approaches to querying data using JPA and Hibernate - JPQL, Criteria API and Native Queries
  • You will understand JPA and Hibernate Relationships in depth - One to One, Many to One and Many to Many
  • You will use a variety of Spring Boot Starters - Spring Boot Starter Web, Starter Data Jpa, Starter Test
  • You will learn the basic of performance tuning your JPA application with Hibernate - Solve N+1 Queries Issue
  • You will learn the basics of caching - First Level Cache and Second Level Cache with EhCache
  • You will understand the basics of Spring Data JPA and Spring Data REST

How it compares

Against the other 101 rated Udemy courses in Java Spring Framework on CourseDuck:

  • Rating4.3 out of 5higher than 23% of them
  • Reviews14,036#8 of 102 by number of reviews
  • Length14 hourslonger than 62% of them
  • Last updatedJanuary 2026more recently than 53% of them

icon
Course Description

Hibernate is the most popular Java ORM framework.  Almost every Real World Project today uses JPA and Hibernate in combination with Spring Boot and Spring Data JPA.

Do you want to Learn JPA & Hibernate and use them in combination with Spring Boot and Spring Data JPA?  Do you want to Learn about Entities, Relationships, Entity Manager, JPQL, Native Queries, Inheritance Hierarchies, Criteria API, Transaction Management, Caching and Performance Tuning with JPA & Hibernate in combination with Spring Data JPA and Spring Data REST? 


WHAT OUR LEARNERS ARE SAYING:

5 STARS - I really loved this course. The instructor explains features of JPA and Hibernate clearly and also very deeply. Especially I liked explanation of the transaction management what I didn't seen in other courses.By the way this course helped me to develop the persistence layer of a commercial application for my customer.

5 STARS - Absolute brilliant course, I was struggling using books but this course helped me understand using code to demonstrate how Hibernate and JPA work. Each video builds on the next and is at a pace that does not overwhelm you. I thoroughly recommend this course if you need to improve your Hibernate and JPA knowledge.

5 STARS - It is really state of the art and how spring boot and hibernate are used nowadays! This course was very helpful in my new job, since in the project we use spring boot and hibernate. Thank you!

5 STARS - This course exceeded my expectations, I thought I knew about hibernate but I discovered I didn't, I really recommend this course.

5 STARS - Thanks Ranga for the wonderful course on Hibernate and JPA with Spring Boot! It's a long course and well worth it. Keep up the great work!


COURSE OVERVIEW

Hibernate is the most popular implementation of JPA. It was the most popular ORM framework option before JPA emerged and it provides additional features on top of JPA. We will use Hibernate as the JPA implementation in this course.

The Java Persistence API provides Java developers with an api for mapping java objects to relational data. In this course, you will learn about the Hibernate, JPA API, JPQL (Java Persistence query language), Java Persistence Criteria API and how you can perform ORM (Object Relational Mapping) with JPA and Hibernate. 

During this course

  • You will learn the basics of JPA and Hibernate - Entities, Relationships, Inheritance Mappings and Annotations

  • You will understand approaches to querying data using JPA and Hibernate - JPQL, Criteria API and Native Queries

  • You will understand JPA and Hibernate Relationships in depth - One to One, Many to One and Many to Many

  • You will use a variety of Spring Boot Starters - Spring Boot Starter Web, Starter Data Jpa, Starter Test

  • You will learn the basic of performance tuning your JPA application with Hibernate - Solve N+1 Queries Issue. 

  • You will learn the basics of caching - First Level Cache and Second Level Cache with EhCache

  • You will understand the basics of Spring Data JPA and Spring Data REST


COURSE HIGHLIGHTS


Journey from JDBC To JPA

  1. Step01 - Setting up a project with JDBC, JPA, H2 and Web Dependencies

  2. Step02 - Launching up H2 Console

  3. Step03 - Creating a Database Table in H2

  4. Step04 - Populate data into Person Table

  5. Step05 - Implement findAll persons Spring JDBC Query Method

  6. Step06 - Execute the findAll method using CommandLineRunner

  7. Step07 - A Quick Review - JDBC vs Spring JDBC

  8. Step08 - Whats in the background? Understanding Spring Boot Autoconfiguration

  9. Step09 - Implementing findById Spring JDBC Query Method

  10. Step10 - Implementing deleteById Spring JDBC Update Method

  11. Step11 - Implementing insert and update Spring JDBC Update Methods

  12. Step12 - Creating a custom Spring JDBC RowMapper

  13. Step13 - Quick introduction to JPA

  14. Step14 - Defining Person Entity

  15. Step15 - Implementing findById JPA Repository Method

  16. Step16 - Implementing insert and update JPA Repository Methods

  17. Step17 - Implementing deleteById JPA Repository Method

  18. Step18 - Implementing findAll using JPQL Named Query

JPA/Hibernate in Depth

  1. Step01 - Create a JPA Project with H2 and Spring Boot

  2. Step02 - Create JPA Entity Course

  3. Step03 - Create findById using JPA Entity Manager

  4. Step04 - Configuring application.properties to enable H2 console and additional logging

  5. Step05 - Writing Unit Test for findById method

  6. Step06 - Writing a deleteByID method to delete an Entity

  7. Step07 - Writing Unit Test for deleteById method

  8. Step08 - Writing a save method to update and insert an Entity

  9. Step09 - Writing Unit Test for save method

  10. Step10 - Quick Review and Debugging Tips

  11. Step11 - Playing with Entity Manager

  12. Step12 - Entity Manager Methods - clear and detach

  13. Step13 - Entity Manager Methods - refresh

  14. Step14 - A Quick Review of Entity Manager

  15. Step15 - JPQL - Basics

  16. Step16 - JPA and Hibernate Annotations - @Table

  17. Step17 - JPA and Hibernate Annotations - @Column

  18. Step18 - JPA and Hibernate Annotations - @UpdateTimestamp and @CreationTimestamp

  19. Step19 - JPA and Hibernate Annotations - @NamedQuery and @NamedQueries

  20. Step20 - Native Queries - Basics

  21. Step21 - Entities and Relationships - An overview

  22. Step22 - Defining Entities - Student, Passport and Review

  23. Step23 - Introduction to One to One Relationship

  24. Step24 - OneToOne Mapping - Insert Student with Passport

  25. Step25 - OneToOne Mapping - Retrieving Student with Passport and Eager Fetch

  26. Step26 - OneToOne Mapping - Lazy Fetch

  27. Step27 - Session vs Transaction

icon
Udemy Discount

The discount is applied through our link. Open the course from here and Udemy's current promotional price is applied at checkout on most courses, no code to type.

Some courses are excluded from Udemy's promotions. If the price does not drop, clear your browser cookies and use the button again.

icon
Instructor Details

in28Minutes Official

Ranga Karanam, the founder of in28minutes, has 2 decades of experience with technology - architecture, design, and programming.  We are helping learners take their first steps into modern cloud native technology and gain expertise on AWS, Azure, Google Cloud, Docker, Kubernetes amongst others.

Our happiest moments are when learners tag us on LinkedIn or reach out to us with their stories of getting their first job, getting a promotion, or a big raise.

----------------------

Ranga is multi-cloud certified -  Google Cloud Certified Professional Cloud Architect, Google Cloud Certified Associate Cloud Engineer, AWS Certified Cloud Practitioner,  Azure Fundamentals Certified AZ-900, DP-900 and AI-900.

Our courses are focused on Cloud Certifications (AWS, Azure, Google Cloud Platform - GCP), DevOps, Full Stack (  React, Angular ), Serverless, Programming, and Microservice Development with Java and Spring Boot.

Our Top Courses include:

1) Master Microservices with Spring Boot and Spring Cloud

2) Java Programming for Complete Beginners

3) Google Cloud Certification - Associate Cloud Engineer - 2021

4) DevOps For Beginners - Docker, Kubernetes, and Azure DevOps

5) Spring Framework Master Class - Java Spring the Modern Way

icon
More courses by in28Minutes Official

$159.99

$139.99

$129.99

$124.99

$139.99

$16.99

icon
More Java Spring Framework courses

$84.99

$84.99

$12.99

$11.99

$10.99

$94.99

icon
Reviews

4.3

14,036 ratings on Udemy

Select a bar to show only those reviews.Select the bar again to show every rating.

By vlad krasnechenko on 6/11/2026

Well, i bought this course but started learn it too late to make refund. Why i wanted refund for this course: - I listened teacher in headphones and his speaking rate and pronunciation with indian accent which i couldnt listen because in some places he talk loud and fast but then some quiet and slow and all this happens again and againin different combinations... - old versions of java and hibernate from 2017. Teacher must update it because, for example, how hibernate works with new java records? - Didnt understand things because teacher couldnt tell about it. For example, annotation PersistenceContext just exist and why he injected EnityManager like that in 43th video but then he inject it through Autowired... - If i buy lectures i expect to receive explanations with schemas and pictures and animations to easy understand. But i got excel tables instead of EntityRelational model... - Idk why were spring data rest there. Just told about 1 mini-case. - I think that i dont need videos at the end of topics and which congratulated me and told me how to study better. Its just a lot of waste of my time. I think teacher should take them to separate free course to help his students in that way. - A lot of code in github repository and you must find examples by your own. I think if i payed money i must have examples one by one and got full code every time. It can be made with different branches or repos. - a lot of words. - 14.5hours is very large for this. - eclipse is not my choice For those who know something about spring and hibernate this course doesnt help. You'd better read something on your own. I dont understand why such high rating because you just buy videos.

By Rahul Khatick on 8/14/2024

Happy 78th Independence day to you and all community members. Words are less to express felling. You are one of those rare teacher for whom respect comes from heart. Every time I watch your videos, I learn many thing from it. I've enrolled to 5 courses of yours and till date there wasn't a single question unanswered. This shows that you really want us to learn and grow. Wish you good health, happiness and luck. I've nothing much to say, so 5 stars to rockstar "Guruji".

By Thierry BENDA on 1/4/2024

Bonjour. Un cours accessible, pour les débutants comme pour les professionnels qui révisent aussi parfois les bases. Les deux sections sur la mise en place du cache et l'optimisation furent la raison principale de mon achat, et ce fut d'excellentes révisions. Je recommande vivement ce formateur ainsi que John Thompson, si vous comprenez l'anglais à l'oral, bien entendu. Merci, et bonne journée à vous ! Thierry

By Adrian Joseph on 8/16/2023

I had a little experience in Java REST SpringBoot application since I've previously worked on it during my internship days and still wasn't understanding the concepts of Spring Data from JDBC to JPA. Now with this course and couple of hands-on experience, I fully understand and able to grasp the knowledge in Spring Data JDBC and JPA. I would seriously recommend developers who going to approach Spring Boot to further understand the concepts and features used in Spring Data JDBC and JPA and this course is no exception. Great course!

By David Phan on 3/8/2023

The course covered a lot of topics - from the dawn of objects-relational mapping (using old technologies) to what we should use in modern day. Many people may be turned off by old materials, but having a good knowledge of those will give you a better understanding and appreciation of how things are today. Ranga is definitely a very good teacher. The pace of teaching is very reasonable and the examples are straight forward.

By Nitish Jain on 1/10/2021

This course is really amazing, being a beginner to Hibernate, I can confidently say that I have learnt a lot from this course which is certainly going to help in my professional career. I really appreciate the way of explaining every small details which is required. I am looking forward to subscribe for other courses of 'in28minutes' like Microservices, Full stack development and Clean code with Java.

By Eric Rybarczyk on 9/27/2020

This is an excellent course. Ranga explains these topics in a very clear way, and with good examples. The course is quite comprehensive, and I feel much more comfortable in these programming areas now that I have completed the course. I think it will be helpful if you have a basic understanding of SQL and relational databases, but advanced knowledge is not required. Many topics in JPA and Hibernate are explained in the course partly by showing the SQL statements that are generated by Hibernate, so understanding basic SQL really helps. (I had only simple experience with JPA and Hibernate before this course, but I have worked with SQL Server in C# for many years, and I have used Java for about three years now.) Also, although the instructor uses Eclipse, I used IntelliJ with no difficulty (I am familiar with Spring development using IntelliJ). If you take the course, be sure to complete it - after all the good topics in the main part of the course, the final modules on caching, performance tuning and other development tips were very useful. I do think a few more complicated entity persistence examples could be added to the course, and using asserts in the JUnit tests instead of just logging and debugging would be better.

By Saiteja Gatadi on 5/4/2020

This course was designed with lot of small steps when compared to the other 5 courses that i've completed.. the smaller steps created an enthusiasm as well as made me to enjoy the learning even though there were 153 steps... Thank You So much RangaSir for your courses and for your patience for even explaining a minute bit.. Completed 6 of your courses in this lockdown period. Awaiting to complete your other Courses from MyCourses section...

By Vladimír Korček on 3/11/2020

This is very good course. Though I am not newbies in the Java web development and have experience with Spring Framework, Hibernate etc., this course gave me a lot, helped me refresh information and understand more deeply JPA, Hibernate and other important things used in developing Spring applications. I like also teacher style and explanation which is detailed and good to understand. Thanks a lot for it.

By Anonymized User on 12/24/2018

Could understand the very basic of Hibernate. Since it was a course of Hibernate and JPA there were too many unwanted Spring lectures. I think it was almost equal no of such lectures, which I didn't want in this course. A lot of use of outdated things. Too much focus on Spring instead of Hibernate and JPA.

Showing all 10 reviews on CourseDuck

Read all 14,036 reviews on Udemy

icon
Quality Score

No CourseDuck member has rated this course yet. Taken it? Give each part a thumbs up or down.

Content Quality
/
Video Quality
/
Qualified Instructor
/
Course Pace
/
Course Depth & Coverage
/

Overall Score : 86 / 100