Java Spring Boot - JPA - Hibernate - H2 - One To Many - REST Web Service - RESTful API

CodeForgeYT
CodeForgeYT
29.3 هزار بار بازدید - 4 سال پیش - In this video we will
In this video we will implement one to many bidirectional relationship using Java, Spring Boot, JPA, Hibernate and H2 in memory database. We will start with generating project and adding all of the necessary dependencies. Later on we will create entities and then we will create a one to many relationship between them using @OneToMany and @ManyToOne annotations.

After creating relation we will create CRUD repositories for both of our entities, so we will be able to perform different database operations like persisting and retrieving.

When the implementation of the database communication layer will be ready we will implement service layer where we will implement main logic of our web service.

After that we will implement Rest Controllers which will expose endpoints to manipulate our entities. At the end we will do some small adjustments and we will add Swagger UI documentation to easily test our endpoints.

Step by step tutorial to get you started with service oriented approach. I hope guide will be useful for you. Keep coding!

Code for this video: https://github.com/codeforgeyt/one-to...

Follow //CodefForgeYT on:
FB: Facebook: codeforgeyt
Twitter: Twitter: codeforgeyt
GitHub: https://github.com/codeforgeyt
Instagram: Instagram: codeforgeyt
4 سال پیش در تاریخ 1399/08/21 منتشر شده است.
29,328 بـار بازدید شده
... بیشتر