Skip to main content

Setup for exercises

Prerequisites

  • Java 25

Fork and Clone the Starter Project

Fork the starter project from this GitHub repository.

Clone your forked repository to your local machine:

git clone git@github.com:your-username/spring-movie-api-jpa-starter.git

[!NOTE] Replace your-username with your actual GitHub username.

Open the project in your IntelliJ.

Exercise Structure

The exercises are structured as follows:

  • Each exercise is in its own markdown file (e.g., 01-value-objects.md, 02-many-to-many.md, etc.)
  • Follow the instructions in each file to complete the exercises.

Committing Your Work

After completing each exercise, commit your changes. For example, after completing Exercise 01:

git add .
git commit -m "Completed Exercise 01: Value Objects"
git push

Learning Objectives

By the end of these exercises, you will be able to:

  • Create and use value objects with @Embeddable and @Embedded.
  • Implement @ManyToMany relationships.
  • Implement @OneToOne relationships.
  • Use cascade operations with JPA entities.
  • Create DTOs using Java Records.