项目作者: shoul10

项目描述 :
Book Manager One-To-Many Relationship project for Spring Boot
高级语言: Java
项目地址: git://github.com/shoul10/bookManager.git
创建时间: 2019-01-30T01:14:21Z
项目社区:https://github.com/shoul10/bookManager

开源协议:

下载


One-to-Many Bidirectional Relationship Mapping

Java Web Services and RESTful API with Spring Boot

This tutorial will walk you through the steps of mapping a JPA/Hibernate One-to-Many bidirectional relationship with Spring Boot, Spring Data JPA, Lombok, H2 and Swagger. The following table relationship diagram illustrates the database designed in this solution:

Image of Yaktocat

One-to-many relationship refers to the relationship between two entities/tables A and B in which one element/row of A may be linked with many elements of B, but a member of B is linked to only one element of A.

In this example, the book_category and book tables have a one-to-many relationship. One category may be linked with many books but one book is linked to only one category.

What you’ll need

build with Maven & Run the application

  1. mvn package && java -jar target/bookManager.jar

Database UI
http://localhost:8080/h2/

Swagger UI
http://localhost:8080/swagger-ui.html