Udemy

Master Spring Data JPA with Hibernate: E-Commerce Project

Enroll Now
  • 3,982 Students
  • Updated 5/2025
4.5
(558 Ratings)
CTgoodjobs selects quality courses to enhance professionals' competitiveness. By purchasing courses through links on our site, we may receive an affiliate commission.

Course Information

Registration period
Year-round Recruitment
Course Level
Study Mode
Duration
18 Hour(s) 59 Minute(s)
Language
English
Taught by
Ramesh Fadatare (Java Guides)
Rating
4.5
(558 Ratings)
3 views

Course Overview

Master Spring Data JPA with Hibernate: E-Commerce Project

Learn Spring Data JPA Features and Learn to Build Domain Model Relationships for E-Commerce Project Using Hibernate ORM

This course supports both Spring Boot 2 and Spring Boot 3.

In this course, you will learn how to use Spring Data JPA and its features to reduce a lot of boilerplate code.


Throughout this course, we will build domain model entities (Product, ProductCategory, Order, OrderItems, User, Roles) and repositories for a simple e-commerce application.


Problem:

In typical three-layer Spring boot application architecture, we create three layers - Controller, Service, and DAO/Repository layer.

If we use JPA/Hibernate and then write a lot of coding while implementing DAO/Repository layer - We repeat the same code again and again so what will be the solution to reduce the boilerplate code?

Solution:

Spring Data JPA provides a solution to reduce a lot of boilerplate code.

We can use Spring Data JPA to reduce the amount of boilerplate code required to implement the data access object (DAO) layer.

Spring Data JPA is not a JPA provider. It is a library/framework that adds an extra layer of abstraction on top of our JPA provider (like Hibernate). Spring Data JPA uses Hibernate as a default JPA provider.

What you'll learn

  • Learn How to Use Spring Data JPA in the Spring Boot Application

  • Learn How to Use JPA Annotations to Create an Entity and Map to a Database Table

  • Learn 4 Types of Primary key Generation Strategies - AUTO, IDENTITY, SEQUENCE, and TABLE

  • Learn How to Use the Lombok Library to Reduce a Boilerplate Code

  • Learn Spring Data JPA Repository Interfaces and Its Hierarchy

  • Learn Steps to Use Spring Data JPA Repository

  • Learn Important Spring Data JPA Repository Methods (CRUD Operations)

  • Learn How to Create Query Methods or Finder Methods Using Method Names

  • Learn How to Create JPQL and Native SQL Queries Using @Query Annotation

  • Learn How to Create JPQL and Native SQL Queries With Named Queries

  • Learn How to Implement Pagination and Sorting Using Spring Data JPA

  • Learn JPA/Hibernate One-to-One Mapping Using Spring Data JPA

  • Learn JPA/Hibernate One to Many Mapping Using Spring Data JPA

  • Learn JPA/Hibernate Many to Many Mapping Using Spring Data JPA

  • Learn JPA Cascade Types and Fetch Types (EAGER and LAZY)

  • Learn building domain model relationships for e-commerce projects using Hibernate ORM framework

  • Learn to implement Search/Filter functionality

  • Learn Transaction Management with Spring Data JPA and Spring Boot

  • Unit Testing Spring Data JPA Repository using @DataJpaTest annotation


Tools and Technologies used

Technologies:

- Java 11+

- Spring Boot

- Spring Data JPA

- Hibernate

- Lombok

- Maven

- JUnit framework

IDE:

- IntelliJ IDEA

Database:

- MySQL database

Course Content

  • 10 section(s)
  • 174 lecture(s)
  • Section 1 Introduction
  • Section 2 Setting Up Your Development Environment
  • Section 3 SQL Course for Beginners (Optional)
  • Section 4 Getting Started with Spring Data JPA
  • Section 5 Create and Setup Spring Boot Project with Spring Data JPA
  • Section 6 Spring Data JPA Repository Interfaces and It’s Hierarchy
  • Section 7 Important Spring Data JPA Repository Methods
  • Section 8 Query Methods or Finder Methods
  • Section 9 JPQL and Native SQL Queries using @Query Annotation
  • Section 10 Creating Named Queries

What You’ll Learn

  • Learn How to Use Spring Data JPA in the Spring Boot Application
  • Build Domain Model Relationships for E-commerce Project Using Hibernate ORM Framework
  • Learn How to Use JPA Annotations to Create an Entity and Map to a Database Table
  • Learn 4 Types of Primary key Generation Strategies - AUTO, IDENTITY, SEQUENCE, and TABLE
  • Learn How to Use the Lombok Library to Reduce a Boilerplate Code
  • Learn Spring Data JPA Repository Interfaces and Its Hierarchy
  • Learn Steps to Use Spring Data JPA Repository
  • Learn Important Spring Data JPA Repository Methods (CRUD Operations)
  • Learn How to Create Query Methods or Finder Methods Using Method Names
  • Learn How to Create JPQL and Native SQL Queries Using @Query Annotation
  • Learn How to Create JPQL and Native SQL Queries With Named Queries
  • Learn How to Implement Pagination and Sorting Using Spring Data JPA
  • Learn JPA/Hibernate One to One Mapping Using Spring Data JPA
  • Learn JPA/Hibernate One to Many Mapping Using Spring Data JPA
  • Learn JPA/Hibernate Many to Many Mapping Using Spring Data JPA
  • Learn JPA Cascade Types and Fetch Types (EAGER and LAZY)
  • Learn to implement Search/Filter Functionality
  • Learn Transaction Management with Spring Data JPA and Spring Boot
  • Unit Testing Spring Data JPA Repository using @DataJpaTest annotation

Reviews

  • S
    Sarada Gollamudi
    5.0

    Very nice Course!

  • S
    Subhan Khan
    5.0

    It was great learning nice tutorials

  • C
    Chandra Challa
    5.0

    Good

  • A
    Anda Crîstea
    2.5

    The sample projects are incomplete. So, where do we find the complete project? Thanks

Start FollowingSee all

We use cookies to enhance your experience on our website. Please read and confirm your agreement to our Privacy Policy and Terms and Conditions before continue to browse our website.

Read and Agreed