JPA/Hibernate One To One unidirectional mapping in Spring Boot

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

Related Posts:
JPA One To Many example with Hibernate and Spring Boot
JPA Many to Many example with Hibernate 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 (with OpenAPI 3)

Read More

JPA/Hibernate One To Many Unidirectional example Spring Boot

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

Related Posts:
JPA One To One example
JPA Many to One example
JPA Many to Many example
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 (with OpenAPI 3)

Read More

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
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

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
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

Read More

MongoDB Many-to-Many Relationship with Mongoose examples

In this tutorial, I will show you how to deal with MongoDB Many to Many Relationship which is an important and complicated Relationship that you will use in most database structures. Then we’re gonna use Mongoose library to make a MongoDB Many to Many Relationship example.

Related Posts:
MongoDB One-to-One relationship tutorial with Mongoose example
MongoDB One-to-Many Relationship tutorial with Mongoose examples

Node.js, Express & MongoDb: Build a CRUD Rest Api example
Node.js + MongoDB: User Authentication & Authorization with JWT

Read More