This is my 2nd article on Spring boot series. If you haven’t read the 1st article, click

In this article, I’ll show you how to implement one-to-one and one-to-many mapping using hibernate in Spring boot.

One to One Mapping

In this spring boot series, I am going to show you all how to develop a spring boot project from basic. In this article we’ll focus on how to start a spring boot project and do all the four CRUD (Create, Read, Update and Delete) operations using a single table. Here I’ll be using the spring tool suite with Maven and MySQL database for implementation.

  1. Project Setup

Over the last 30 years, websites have gone from simple HTML pages with a bit of CSS to incredibly complex applications with thousands of developers working on them. To decrease the complexity of the project, developers started to use different software Architectural design patterns. Yes! Amongst them, MVC Architecture is the most popular pattern. MVC stands for Model, View, and Controller. Each of these components is built to handle specific development aspects of an application.

Screenshot by author

At first, the client will send the request to the server. When the request comes to the server, the Controller will respond to the request…

Mohamed Razan

Undergraduate at University of Moratuwa

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store