kifangamukundi / spring-data-jpa

Working with Spring Data JPA with relational databases

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spring Data Jpa

This is an implentation template for working with spring boot jpa and relational databases. It includes mapping classes database tables, working with transactions, JPQL queries, Native queries, 1 to 1 relationships, 1 to many relationships, and many to many relationships.

In this example am using PostgreSQL as database. And the layout is as follows:

Entities Structure

  • Student (OneToMany) -> Book
  • Student (OneToOne) -> StudentIdCard
  • Student (ManyToMany) -> Enrolment <- (ManyToMany) Course

About

Working with Spring Data JPA with relational databases


Languages

Language:Java 100.0%