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 - 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
-
-
-
-
-
-
-
(Locked)
Finding and updating an existing entity instance7m 12s
-
(Locked)
Attaching and detaching an entity instance4m 42s
-
(Locked)
Removing an entity instance2m 42s
-
Using the getReference() and refresh() methods5m 53s
-
(Locked)
Using composite keys on an entity8m 1s
-
(Locked)
Challenge: Art Class Management app, part 31m 29s
-
(Locked)
Solution: Art Class Management app, part 34m 8s
-
(Locked)
-
-
-
-