DEV Community

loading...

Spring Data Rest – How to create a RestAPIs with JPA One-to-Many relational entities | SpringBoot + MySql + HAL Browser

loizenai
Software Engineer - Founder at https://loizenai.com
・2 min read

https://grokonez.com/java-integration/spring-data-rest-create-restapis-jpa-one-many-relational-entities-springboot-mysql-hal-browser

Spring Data Rest – How to create a RestAPIs with JPA One-to-Many relational entities | SpringBoot + MySql + HAL Browser

In the tutorial, I will show you how to build a Spring Data Rest One-To-Many relational entities with SpringBoot JPA.

Related posts:

I. Technology

– Java 8
– Maven 3.6.1
– Spring Tool Suite: Version 3.8.4.RELEASE
– Spring Boot: 1.5.4.RELEASE
– MySQL

Step to do:

  • Create SpringBoot project
  • Create Jpa entities
  • Create Rest repositories
  • Implement CommandLineRunner client
  • Run and check results

spring data rest - jpa one-to-many entities - project structure

1. Create SpringBoot project

Using SpringToolSuite to create a SpringBoot project. Then add dependencies:

More at:

https://grokonez.com/java-integration/spring-data-rest-create-restapis-jpa-one-many-relational-entities-springboot-mysql-hal-browser

Spring Data Rest – How to create a RestAPIs with JPA One-to-Many relational entities | SpringBoot + MySql + HAL Browser

Discussion (0)

Forem Open with the Forem app