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.
- Host: GitHub
- URL: https://github.com/purvajage/springboot_jpa_mapping
- Owner: purvajage
- Created: 2024-07-08T07:07:05.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-08T07:21:49.000Z (almost 2 years ago)
- Last Synced: 2025-02-14T22:32:03.968Z (over 1 year ago)
- Topics: hibernate-jpa, spring-jpa, springboot, sql
- Language: Java
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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