An open API service indexing awesome lists of open source software.

https://github.com/purvajage/springboot_jpa_mapping

This project demonstrates the use of various JPA mappings in a Spring Boot application. It covers one-to-one, one-to-many, many-to-one, and many-to-many relationships using JPA and Hibernate.
https://github.com/purvajage/springboot_jpa_mapping

hibernate-jpa spring-jpa springboot sql

Last synced: 2 months ago
JSON representation

This project demonstrates the use of various JPA mappings in a Spring Boot application. It covers one-to-one, one-to-many, many-to-one, and many-to-many relationships using JPA and Hibernate.

Awesome Lists containing this project

README

          

# Spring Boot JPA Mapping
This project demonstrates the use of various JPA mappings in a Spring Boot application. It covers one-to-one, one-to-many, many-to-one, and many-to-many relationships using JPA and Hibernate.

# Technologies Used
+ Java
+ Spring Boot
+ Spring Data JPA
+ Hibernate
+ MySQL or any SQL database

# JPA Mappings Covered
+ **One-to-One Mapping**:
- Entity class: instructor and instructor detail
- Annotation Used: @OneToOne
+ **One-to-Many Mapping**:
- Entity Classes: Comment and Post
- Annotation Used: @OneToMany, @ManyToOne
+ **Many-to-Many Mapping**:
- Entity Classes: Post and tag
- Annotation Used: @ManyToMany