Project Creation
Learn how to create a project for exploring database relationships in Spring.
We'll cover the following
We will create a project for understanding database relationships by going to Spring Initializr. Create a Maven project with the latest stable version of Spring Boot. Use the following project metadata values:
Group id:
io.datajek
Artifact id:
database-relationships
For this project, the following dependencies are needed:
Spring Data JPA which is Spring’s JPA implementation using Hibernate ORM framework.
Spring Web which supports web applications as well as REST services.
H2 database which is an in-memory database.
Spring Boot Devtools which adds the auto restart functionality.
Click "Generate" to download the project. Unzip and import in the IDE. Now we will add the Jackson
dependency for Hibernate 5. This dependency provides support for Hibernate datatypes and specifically handles aspects of lazy-loading. We are adding it manually as this dependency is not available in Spring Initializr.
Get hands-on with 1400+ tech skills courses.