Course Overview
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
Step01 - Setting up a project with JDBC, JPA, H2 and Web Dependencies
Step02 - Launching up H2 Console
Step03 - Creating a Database Table in H2
Step04 - Populate data into Person Table
Step05 - Implement findAll persons Spring JDBC Query Method
Step06 - Execute the findAll method using CommandLineRunner
Step07 - A Quick Review - JDBC vs Spring JDBC
Step08 - Whats in the background? Understanding Spring Boot Autoconfiguration
Step09 - Implementing findById Spring JDBC Query Method
Step10 - Implementing deleteById Spring JDBC Update Method
Step11 - Implementing insert and update Spring JDBC Update Methods
Step12 - Creating a custom Spring JDBC RowMapper
Step13 - Quick introduction to JPA
Step14 - Defining Person Entity
Step15 - Implementing findById JPA Repository Method
Step16 - Implementing insert and update JPA Repository Methods
Step17 - Implementing deleteById JPA Repository Method
Step18 - Implementing findAll using JPQL Named Query
JPA/Hibernate in Depth
Step01 - Create a JPA Project with H2 and Spring Boot
Step02 - Create JPA Entity Course
Step03 - Create findById using JPA Entity Manager
Step04 - Configuring application.properties to enable H2 console and additional logging
Step05 - Writing Unit Test for findById method
Step06 - Writing a deleteByID method to delete an Entity
Step07 - Writing Unit Test for deleteById method
Step08 - Writing a save method to update and insert an Entity
Step09 - Writing Unit Test for save method
Step10 - Quick Review and Debugging Tips
Step11 - Playing with Entity Manager
Step12 - Entity Manager Methods - clear and detach
Step13 - Entity Manager Methods - refresh
Step14 - A Quick Review of Entity Manager
Step15 - JPQL - Basics
Step16 - JPA and Hibernate Annotations - @Table
Step17 - JPA and Hibernate Annotations - @Column
Step18 - JPA and Hibernate Annotations - @UpdateTimestamp and @CreationTimestamp
Step19 - JPA and Hibernate Annotations - @NamedQuery and @NamedQueries
Step20 - Native Queries - Basics
Step21 - Entities and Relationships - An overview
Step22 - Defining Entities - Student, Passport and Review
Step23 - Introduction to One to One Relationship
Step24 - OneToOne Mapping - Insert Student with Passport
Step25 - OneToOne Mapping - Retrieving Student with Passport and Eager Fetch
Step26 - OneToOne Mapping - Lazy Fetch
Step27 - Session vs Transaction
Step28 - OneToOne Mapping - Bidirectional Relationship - Part 1
Step29 - OneToOne Mapping - Bidirectional Relationship - Part 2
Step30 - ManyToOne Mapping - Designing the database
Step31 - ManyToOne Mapping - Retrieving and inserting Reviews for Course
Step32 - ManyToOne Mapping - Generalizing Insert Reviews
Step33 - ManyToOne Mapping - Wrapping up
Step34 - ManyToMany Mapping - Table Design
Step35 - ManyToMany Mapping - Adding Annotations on Entities
Step36 - ManyToMany Mapping - Fixing two join tables problem
Step37 - ManyToMany Mapping - Customizing the Join Table
Step38 - ManyToMany Mapping - Insert Data and Write Join Query
Step39 - ManyToMany Mapping - Retrieve Data using JPA Relationships
Step40 - ManyToMany Mapping - Insert Student and Course
Step41 - Relationships between JPA Entities - A summary
Step42 - Introduction to Inheritance Hierarchies and Mappings
Step43 - JPA Inheritance Hierarchies and Mappings - Setting up entities
Step44 - JPA Inheritance Hierarchies and Mappings - Setting up a Repository
Step45 - JPA Inheritance Hierarchies and Mappings - Single Table
Step46 - JPA Inheritance Hierarchies and Mappings - Table Per Class
Step47 - JPA Inheritance Hierarchies and Mappings - Joined
Step48 - JPA Inheritance Hierarchies and Mappings - Mapped Super Class
Step49 - JPA Inheritance Hierarchies and Mappings - How to Choose?
Step50 - JPQL - Courses without Students
Step51 - JPQL - Courses with atleast 2 Students and order by
Step52 - JPQL - Courses like 100 Steps
Step53 - JPQL - Using Joins
Step54 - Criteria Query - Retrieving all courses
Step55 - Criteria Query - Courses like 100 Steps
Step56 - Criteria Query - Courses without Students
Step57 - Criteria Query - Using Joins
Step58 - Introduction to Transaction Management
Step59 - Transaction Management - ACID Properties
Step60 - Understanding Dirty, Phanthom and Non Repeatable Reads
Step61 - Understand 4 Isolation Levels
Step62 - Choosing between Isolation Levels
Step63 - Implementing Transaction Management - 3 Things to Decide
Step64 - Introduction to Spring Data JPA
Step65 - Testing the Spring Data JPA Repository with findById.
Step66 - Spring Data JPA Repository - CRUD Methosd
Step67 - Sorting using Spring Data JPA Repository
Step68 - Pagination using Spring Data JPA Repository
Step69 - Custom Queries using Spring Data JPA Repository
Step70 - Spring Data REST
Step71 - Introduction to Caching
Step72 - Hibernate and JPA Caching - First Level Cache
Step73 - Hibernate and JPA Caching - Basics of Second Level Cache with EhCache
Step74 - Hibernate and JPA Caching - Second Level Cache Part 2
Step75 - Hibernate Tips - Hibernate Soft Deletes - @SQLDelete and @Where
Step76 - Hibernate Soft Deletes - Part 2
Step77 - JPA Entity Life Cycle Methods
Step78 - Using Embedded and Embeddable with JPA
Step79 - Using Enums with JPA
Step80 - JPA Tip - Be cautious with toString method implementations
Step81 - JPA Tip - When do you use JPA?
Step82 - Performance Tuning - Measure before Tuning
Step83 - Performance Tuning - Indexes
Step84 - Performance Tuning - Use Appropriate Caching
Step85 - Performance Tuning - Eager vs Lazy Fetch
Step86 - Performance Tuning - Avoid N+1 Problems
Hibernate Tips & Tricks
When does Hibernate send updates to the database?
When do we need @Transactional in an Unit Test?
Do read only methods need a transaction?
Why do we use @DirtiesContext in an Unit Test?
How to connect to a different database with Spring Boot?
How do you approach designing great applications with JPA?
Good Practices for developing JPA Applications
Start Learning Now. Hit the Enroll Button!
FAQ
FAQ area empty
Course curriculum
Chương 1 Introduction 8 bài · 21 phút
- Master Hibernate and JPA with Spring Boot - Preview Học thử 3:00
- Congratulations Học thử
- One Thing You Should Do Học thử 2:41
-
Master Hibernate and JPA with Spring Boot - Course Overview 3:04
-
Master Hibernate and JPA with Spring Boot - Git Repository 2:30
-
Master Hibernate and JPA with Spring Boot - Installing Basic Tools 2:16
- Quick introduction to JPA Học thử 7:32
- DO NOT SKIP: Join in28minutes Learning Community Học thử
Chương 2 Introduction to Spring Boot in 10 Steps 16 bài · 1 giờ 16 phút
-
DO NOT SKIP: New to Spring Framework?
- Step 01 - Getting Started with Spring Boot - Goals Học thử 1:32
- Step 02 - Setting up New Spring Boot Project with Spring Initializr Học thử 3:16
-
Step 03 - Setting up New Spring Boot Project with Spring Initializr 6:07
-
Step 04 - Build a Hello World API with Spring Boot 8:58
-
Step 05 - Understanding the Goal of Spring Boot 2:45
-
Step 06 - Understanding Spring Boot Magic - Spring Boot Starter Projects 5:22
-
Step 07 - Understanding Spring Boot Magic - Auto Configuration 8:39
-
Step 08 - Build Faster with Spring Boot DevTools 4:10
-
Step 09 - Get Production Ready with Spring Boot - 1 - Profiles 7:05
-
Step 10 - Get Production Ready with Spring Boot - 2 - ConfigurationProperties 7:31
-
Step 11 - Get Production Ready with Spring Boot - 3 - Embedded Servers 6:27
-
Step 12 - Get Production Ready with Spring Boot - 4 - Actuator 7:33
-
Step 13 - Understanding Spring Boot vs Spring vs Spring MVC 3:55
-
Step 14 - Getting Started with Spring Boot - Review 0:38
-
How to remember things for long time 1:51
Chương 3 Journey From Spring JDBC to JPA 21 bài · 1 giờ 30 phút
-
Introduction to Journey from JDBC To JPA 1:30
-
Step 01 - Setting up a project with JDBC, JPA, H2 and Web Dependencies 5:32
-
COURSE UPDATE : H2 Database URL
-
Step 02 - Launching up H2 Console 5:01
-
Trouble Shooting Your Problems
-
Step 03 - Creating a Database Table in H2 3:54
-
Step 04 - Populate data into Person Table 5:21
-
Step 05 - Implement findAll persons Spring JDBC Query Method 6:15
-
Step 06 - Execute the findAll method using CommandLineRunner 5:45
-
Step 07 - A Quick Review - JDBC vs Spring JDBC 2:41
-
Step 08 - Whats in the background? Understanding Spring Boot Autoconfiguration 5:06
-
Step 09 - Implementing findById Spring JDBC Query Method 3:48
-
Step 10 - Implementing deleteById Spring JDBC Update Method 3:08
-
Step 11 - Implementing insert and update Spring JDBC Update Methods 8:39
-
Step 12 - Creating a custom Spring JDBC RowMapper 4:58
-
Step 13 - Quick introduction to JPA 5:54
-
Step 14 - Defining Person Entity 4:03
-
Step 15 - Implementing findById JPA Repository Method 8:06
-
Step 16 - Implementing insert and update JPA Repository Methods 3:51
-
Step 17 - Implementing deleteById JPA Repository Method 2:10
-
Step 18 - Implementing findAll using JPQL Named Query 4:03
Chương 4 Introduction to JUnit in 5 Steps 6 bài · 38 phút
-
Introduction to JUnit in 5 Steps 1:08
-
Step 1 : What is JUnit and Unit Testing? 5:28
-
Step 02 - Your First JUnit Project and Green Bar 10:43
-
Step 03 - Your First Code and First Unit Test 5:24
-
Step 04 - Exploring other assert methods 8:01
-
Step 05 - Exploring few important JUnit annotations 7:08
Chương 5 JPA and Hibernate in Depth 24 bài · 2 giờ 5 phút
-
Introduction to JPA and Hibernate in Depth 1:43
-
Step 01 - Create a JPA Project with H2 and Spring Boot 4:43
-
COURSE UPDATE : H2 Database URL
-
Step 02 - Create JPA Entity Course 4:04
-
Step 03 - Create findById using JPA Entity Manager 8:24
-
Step 04 - Configuring application.properties to enable H2 console and logging 7:08
-
COURSE UPDATE : JUnit 4 vs JUnit 5
-
Step 05 - Writing Unit Test for findById method 10:46
-
Step 06 - Writing a deleteByID method to delete an Entity 5:41
-
Step 07 - Writing Unit Test for deleteById method 4:33
-
Step 08 - Writing a save method to update and insert an Entity 3:23
-
Step 09 - Writing Unit Test for save method 5:51
-
Step 10 - Quick Review and Debugging Tips 7:16
-
Step 11 - Playing with Entity Manager 7:16
-
Step 12 - Entity Manager Methods - clear and detach 5:32
-
Step 13 - Entity Manager Methods - refresh 6:31
-
Step 14 - A Quick Review of Entity Manager 2:10
-
Step 15 - JPQL - Basics 7:57
-
Step 16 - JPA and Hibernate Annotations - @Table 4:35
-
Step 17 - JPA and Hibernate Annotations - @Column 5:48
-
Step 18 - JPA and Hibernate Annotations - @UpdateTimestamp & @CreationTimestamp 7:08
-
Step 19 - JPA and Hibernate Annotations - @NamedQuery and @NamedQueries 4:21
-
Step 20 - Native Queries - Basics 8:15
-
How to be consistent? 2:09
Chương 6 Establishing Relationships with JPA and Hibernate - OneToOne 9 bài · 1 giờ 2 phút
-
Step 21 - Entities and Relationships - An overview 6:21
-
Step 22 - Defining Entities - Student, Passport and Review 9:30
-
Step 23 - Introduction to One to One Relationship 7:22
-
Step 24 - OneToOne Mapping - Insert Student with Passport 8:46
-
Step 25 - OneToOne Mapping - Retrieving Student with Passport and Eager Fetch 4:33
-
Step 26 - OneToOne Mapping - Lazy Fetch 4:50
-
Step 27 - Transaction, Entity Manager and Persistence Context 10:12
-
Step 28 - OneToOne Mapping - Bidirectional Relationship - Part 1 6:35
-
Step 29 - OneToOne Mapping - Bidirectional Relationship - Part 2 3:52
Chương 7 Let's review with a few FAQs about Hibernate and JPA 4 bài · 18 phút
-
FAQ 1 - When does Hibernate send updates to the database? 6:13
-
FAQ 2 - When do we need @Transactional in an Unit Test? 3:10
-
FAQ 3 - Do read only methods need a transaction? 4:58
-
FAQ 4 - Why do we use @DirtiesContext in an Unit Test? 3:46
Chương 8 Establishing Relationships with JPA and Hibernate - OneToMany and ManyToMany 14 bài · 1 giờ 17 phút
-
Step 30 - ManyToOne Mapping - Designing the database 4:34
-
Step 30 - Part 2 - ManyToOne Mapping - Implementing the Mapping 6:52
-
Step 31 - ManyToOne Mapping - Retrieving and inserting Reviews for Course 8:09
-
Step 32 - ManyToOne Mapping - Generalizing Insert Reviews 6:09
-
Step 33 - ManyToOne Mapping - Wrapping up 9:28
-
Step 34 - ManyToMany Mapping - Table Design 2:59
-
Step 35 - ManyToMany Mapping - Adding Annotations on Entities 4:44
-
Step 36 - ManyToMany Mapping - Fixing two join tables problem 3:27
-
Step 37 - ManyToMany Mapping - Customizing the Join Table 5:02
-
Step 38 - ManyToMany Mapping - Insert Data and Write Join Query 4:41
-
Step 39 - ManyToMany Mapping - Retrieve Data using JPA Relationships 7:11
-
Step 40 - ManyToMany Mapping - Insert Student and Course 8:38
-
Step 41 - Relationships between JPA Entities - A summary 3:58
-
How to handle failures 1:34
Chương 9 Inheritance Hierarchies with JPA and Hibernate 8 bài · 35 phút
-
Step 42 - Introduction to Inheritance Hierarchies and Mappings 2:34
-
Step 43 - JPA Inheritance Hierarchies and Mappings - Setting up entities 4:13
-
Step 44 - JPA Inheritance Hierarchies and Mappings - Setting up a Repository 5:12
-
Step 45 - JPA Inheritance Hierarchies and Mappings - Single Table 5:31
-
Step 46 - JPA Inheritance Hierarchies and Mappings - Table Per Class 3:35
-
Step 47 - JPA Inheritance Hierarchies and Mappings - Joined 3:53
-
Step 48 - JPA Inheritance Hierarchies and Mappings - Mapped Super Class 5:14
-
Step 49 - JPA Inheritance Hierarchies and Mappings - How to Choose? 4:37
Chương 10 Queries with Entities using JPQL 4 bài · 25 phút
-
Step 50 - JPQL - Courses without Students 5:54
-
Step 51 - JPQL - Courses with atleast 2 Students and order by 3:57
-
Step 52 - JPQL - Courses like 100 Steps 4:22
-
Step 53 - JPQL - Using Joins 10:21
Chương 11 Queries using Java API - Criteria Queries 5 bài · 21 phút
-
Step 54 - Criteria Query - Retrieving all courses 9:03
-
Step 55 - Criteria Query - Courses like 100 Steps 3:27
-
Step 56 - Criteria Query - Courses without Students 2:16
-
Step 57 - Criteria Query - Using Joins 3:48
-
Understanding Importance of Deep Work 2:22
Chương 12 Transaction Management 6 bài · 34 phút
-
Step 58 - Introduction to Transaction Management 4:43
-
Step 59 - Transaction Management - ACID Properties 5:49
-
Step 60 - Understanding Dirty, Phanthom and Non Repeatable Reads 9:25
-
Step 61 - Understand 4 Isolation Levels 5:48
-
Step 62 - Choosing between Isolation Levels 4:03
-
Step 63 - Implementing Transaction Management - 3 Things to Decide 4:38
Chương 13 Spring Data JPA & Spring Data REST 7 bài · 36 phút
-
Step 64 - Introduction to Spring Data JPA 4:28
-
Step 65 - Testing the Spring Data JPA Repository with findById. 4:13
-
Step 66 - Spring Data JPA Repository - CRUD Methods 5:30
-
Step 67 - Sorting using Spring Data JPA Repository 2:53
-
Step 68 - Pagination using Spring Data JPA Repository 6:11
-
Step 69 - Custom Queries using Spring Data JPA Repository 7:31
-
Step 70 - Spring Data REST 5:14
Chương 14 Caching with Hibernate & JPA 4 bài · 31 phút
-
Step 71 - Introduction to Caching 7:16
-
Step 72 - Hibernate and JPA Caching - First Level Cache 6:24
-
Step 73 - Hibernate and JPA Caching - Basics of Second Level Cache with EhCache 7:32
-
Step 74 - Hibernate and JPA Caching - Second Level Cache Part 2 9:26
Chương 15 Hibernate & JPA Tips 7 bài · 36 phút
-
Step 75 - Hibernate Tips - Hibernate Soft Deletes - @SQLDelete and @Where 9:36
-
Step 76 - Hibernate Soft Deletes - Part 2 6:17
-
Step 77 - JPA Entity Life Cycle Methods 2:37
-
Step 78 - Using Embedded and Embeddable with JPA 6:31
-
Step 79 - Using Enums with JPA 6:24
-
Step 80 - JPA Tip - Be cautious with toString method implementations 2:31
-
Step 81 - JPA Tip - When do you use JPA? 2:09
Chương 16 Performance Tuning Tips with Hibernate & JPA 5 bài · 17 phút
-
Step 82 - Performance Tuning - Measure before Tuning 1:56
-
Step 83 - Performance Tuning - Indexes 1:44
-
Step 84 - Performance Tuning - Use Appropriate Caching 2:56
-
Step 85 - Performance Tuning - Eager vs Lazy Fetch 2:02
-
Step 86 - Performance Tuning - Avoid N+1 Problems 8:51
Chương 17 Few more FAQ 4 bài · 14 phút
-
FAQ 5 - How to connect to a different database with Spring Boot? 4:06
-
FAQ 6 - Approach to design great applications with JPA? 2:26
-
FAQ 7 - Good Practices for developing JPA Applications 4:39
-
Do You Know Your Learning Style 2:19
Chương 18 Congratulations 2 bài · 1 phút
-
Bonus Lecture
-
Congratulations 1:16
Chương 19 Appendix - Introduction to Spring Framework in 16 Steps 16 bài · 1 giờ 22 phút
-
Step 01 - Getting Started with Spring Framework - Goals 2:52
-
Step 02 - Setting up New Spring Project with Spring Initializr 5:02
-
Step 03 - Iteration 1 - Building Tightly Coupled GameRunner and MarioGame 7:44
-
Step 04 - Understanding Tight Coupling 3:06
-
Step 05 - Iteration 2 - Loose Coupling Level 1 - Interfaces 4:06
-
Step 06 - Exploring Loose Coupling with Interfaces - PacmanGame 1:49
-
Step 07 - Iteration 3 - Loose Coupling Level 2 - Spring Framework 9:11
-
Step 08 - Q1 - Spring Framework - Understanding whats happening in Background 9:31
-
Step 09 - Q2 - Spring Framework - Understanding Important Terminology 8:24
-
Step 10 - Q3 - Spring Framework - Does Spring Framework Add Value 11:20
-
Step 11 - Q4 - Spring Framework - Running Super Contra 2:19
-
Step 12 - Q5 - Spring Framework - Maven 6:09
-
Step 13 - Exploring Spring Framework Dependency Injection Types 4:52
-
Step 14 - Exploring Spring Modules 2:11
-
Step 15 - Exploring Spring Projects 2:52
-
Step 16 - Getting Started with Spring Framework - Review 0:48
Requirment
-
You have an attitude to learn while having fun :)
-
You have programming experience with Java
-
We will help you get started with Spring and Spring Boot
Outcomes
-
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
0 Student
12 Courses
0 review