JPA Many to Many example with Hibernate in Spring Boot

In this tutorial, I will show you how to implement Spring JPA Many-To-Many mapping with Hibernate in a Spring Boot CRUD example using @ManyToMany annotation. You’ll know:

  • How to configure Spring Data, JPA, Hibernate to work with Database
  • How to define Data Models and Repository interfaces for JPA Many-To-Many relationship
  • Way to use Spring JPA to interact with Database for Many-To-Many association
  • Way to create Spring Rest Controller to process HTTP requests

Related Posts:
JPA One To Many example with Hibernate and Spring Boot
Spring Boot Token based Authentication with Spring Security & JWT
Spring JPA + H2 example
Spring JPA + MySQL example
Spring JPA + PostgreSQL example
Spring JPA + Oracle example
Spring JPA + SQL Server example

Read More


React Custom Hook tutorial with example

In addition to the familiar Hooks like useState, useEffect, useRef…, React also allows us to create custom Hooks with unique features that extracts component logic into reusable functions. Let’s learn how to write a Custom Hook for API call in React through a simple useAxiosFetch example.

More Practice:
React Hooks CRUD example with Axios and Web API
React Hooks File Upload example with Axios
React Form Validation with Hooks example
React Hooks: JWT Authentication (without Redux) example
React + Redux: JWT Authentication example

React Hooks + Firebase Realtime Database: CRUD App
React Hooks + Firestore example: CRUD app

Typescript version: React Custom Hook in Typescript example

Read More