Spring Boot JPA
In 5 Simple Steps Integrate PostgreSQL Database | Tuorial - 4
Hello Friends, Welcome to Spring Boot JPA tutorial.
In this tutorial of Spring Boot JPA we are going to integrate PostgreSQL database in 5 simple steps with Account Spring Boot Restful Web Service that we have created in our previous Spring Boot tutorial.
In this tutorial of Spring Boot JPA we are going to integrate PostgreSQL database in 5 simple steps with Account Spring Boot Restful Web Service that we have created in our previous Spring Boot tutorial.
FIVE STEPS
STEP - 1
Adding Spring Boot JPA and PostgreSQL driver class dependency in build.gradle
STEP - 2
Adding properties releated to Spring Boot JPA & PostgreSQL database in application.properties
STEP - 3
Converting Account domain to Account entity using Spring Boot JPA annotations
STEP - 4
Implementing Spring Boot JPA Repository
STEP - 5
Adding support of Spring Boot JPA Repository in Service class
Spring Data JPA
- Spring data JPA does a integration between Spring Application & JPA.
- JPA stands for JAVA Persistent API
- JPA is a collection of method & classes to persist data in database
- JPA forms a bridge between the Object Model (POJO) & Relational Model (Database Table)
Step-1: Adding Dependencies
Step-2: Adding Properties
Step-3: Implementing JPA Entity
Step-4: Implementing Spring Boot JPA Repository
Step-5: Adding support of JPA repository in Service
For more details please check out following videos:
1. Restful Web Service Tutorial - https://goo.gl/7evDWv
2. Spring Boot Restful Web Service Tutorial - https://goo.gl/3F8W5g
1. Restful Web Service Tutorial - https://goo.gl/7evDWv
2. Spring Boot Restful Web Service Tutorial - https://goo.gl/3F8W5g