Master Spring Data JPA with Hibernate




Master Spring Data JPA with Hibernate

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 the 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

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

Url: View Details

What you will 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

Rating: 4.36111

Level: Beginner Level

Duration: 15 hours

Instructor: Ramesh Fadatare (Java Guides)


Courses By:   0-9  A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X  Y  Z 

About US

The display of third-party trademarks and trade names on this site does not necessarily indicate any affiliation or endorsement of hugecourses.com.


© 2021 hugecourses.com. All rights reserved.
View Sitemap