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 One example with Hibernate and Spring Boot
– JPA One To Many example with Hibernate and Spring Boot
– Validate Request Body in 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
– Documentation: Spring Boot Swagger 3 example
– Caching: Spring Boot Redis Cache example

Read More

Spring Boot + React Typescript example

In this tutorial, we will learn how to build a full stack Spring Boot + React Typescript example with a CRUD App. The back-end server uses Spring Boot with Spring Web MVC for REST APIs and Spring Data JPA for interacting with embedded database (H2 database). Front-end side is made with React Typescript, React Router, Axios & Bootstrap.

Related Posts:
– React + Spring Boot: Pagination example
– Spring Boot + React: Login example with JWT Authentication & Spring Security
– React Upload/Download Files to/from Spring Boot Rest Apis
– React Custom Hook in Typescript example

Run both projects in one place:
How to integrate React with Spring Boot

You can use one of following backend for other Databases:

Read More

JPA One To Many example with Hibernate and Spring Boot

In this tutorial, I will show you how to implement Spring JPA One-To-Many mapping with Hibernate in a Spring Boot CRUD example using @ManyToOne 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 One-To-Many relationship
  • Way to use Spring JPA to interact with Database for One-To-Many association
  • Way to create Spring Rest Controller to process HTTP requests

Related Posts:
– JPA One To One example with Hibernate in Spring Boot
– JPA Many to Many example with Hibernate in Spring Boot
– Validate Request Body in 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
– Documentation: Spring Boot Swagger 3 example
– Caching: Spring Boot Redis Cache example

Read More

MEAN Stack example: CRUD with Angular 13, Node, MongoDB

In this tutorial, I will show you how to make Angular 13 connect to MongoDB with Node.js Express. We’re gonna build a full-stack (MEAN stack) CRUD example in which, the back-end server uses Node.js + Express for REST APIs, front-end side is an Angular App with HttpClient, Router and Bootstrap.

Other versions:
– MEAN Stack example with Angular 8
– MEAN Stack example with Angular 10
– MEAN Stack example with Angular 11
– MEAN Stack example with Angular 12
– MEAN Stack example with Angular 14
– MEAN Stack example with Angular 15
– MEAN Stack example with Angular 16

Run both projects in one place:
How to Integrate Angular with Node.js Restful Services

Security: MEAN stack Authentication & Authorization example

Serverless with Firebase:
– Angular 13 Firebase CRUD Realtime DB
– Angular 13 Firestore CRUD example

Read More