From the course: Build Spring Boot Apps with the Kotlin Programming Language
Unlock this course with a free trial
Join today to access over 22,600 courses taught by industry experts.
Upgrading the view
From the course: Build Spring Boot Apps with the Kotlin Programming Language
Upgrading the view
- [Instructor] Okay, well, let's move on. We have a booking class, so now we'll need a JPA repository for it. Well, that should be pretty straightforward, so let's go and put that in here. So this is going to be BookingRepository this time, and the object is of type Booking, and it's a long for the ID. We'll just need to import Booking. And now, well, I really want to say at this point, pause the video, and let's just code up the rest of this to make it work. Actually, before you can do that, there are some changes we'll need to make, so I'd like to talk through those with you, as I'm providing you most of the code in the starting workspace for this chapter. So let's go back again to the starting workspace, and in here, you'll find a replacement for our HTML called seatBooking, and another file called bookingConfirmed, so you'll need to copy both of those, and then in the resources\templates folder of our project, delete the existing seatBooking file, and replace it with a new one…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
(Locked)
Step 1: Explaining the challenge4m 9s
-
(Locked)
Solution walk-through2m 33s
-
(Locked)
Mappings between entities7m 33s
-
(Locked)
Upgrading the view11m 25s
-
(Locked)
Step 2: Explaining the challenge2m 26s
-
(Locked)
Solution walk-through9m 4s
-
(Locked)
Step 3: Explaining the challenge3m 21s
-
(Locked)
Solution walk-through4m 21s
-
(Locked)
-