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

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…

Contents