From the course: Java Persistence with JPA and Hibernate

Unlock the full course today

Join today to access over 24,400 courses taught by industry experts.

Challenge: Art Class Management app, part 3

Challenge: Art Class Management app, part 3 - JPA Tutorial

From the course: Java Persistence with JPA and Hibernate

Challenge: Art Class Management app, part 3

(tech music) - [Instructor] It is time for the third code challenge. In this challenge, you'll practice how to find and update an entity instance and attach, detach, and remove an entity instance in the persistence context. Before you start working on this challenge, make sure that the art class database is already created and that you've completed the previous challenges. In the main class, there are four empty methods below the main method. These methods are created to represent each use case that we'll work on in this challenge. Before you start writing code for this challenge, put the code that you wrote for the previous challenge into the create method. After moving, your code should still run without any errors. You can find task steps in a file name challenge-steps.txtinbranch05_06 of the GitHub repository of this course. Simply follow the steps to complete this challenge. This challenge should take you around 15 to 20 minutes to complete. If you take longer than that, it's…

Contents