From the course: Learning Spring 6 with Spring Boot 3

Unlock the full course today

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

Challenge: Data access

Challenge: Data access

(upbeat music) - [Instructor] Now, we're getting to our first challenge of the course, creating data access. So here's the steps that I want you to follow. First of all, I want you to create an entity for the Guest table. Remember, you can reference that from the schema.SQL file. And if you deleted it like I did, you still have it in the BIN directory. And if not, you can go back to one of the previous exercise files and get that schema. So you're going to create an entity for Guest. You're going to do the same for the Reservation table. You're going to create a JPA repository that maps to that Guest table and a JPA repository for the Reservation table. In addition, on the Reservation repository, I want you to create a method to Get All by the column called RES_DATE. So whatever you call that entity, you're going to do a Get All based on that. So have fun with this one, play around with it, and I will be back with…

Contents