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.
Step 2: Explaining the challenge
From the course: Build Spring Boot Apps with the Kotlin Programming Language
Step 2: Explaining the challenge
- [Man] Back to our controller then. We've dealt with the home page, that's the better functionality that says, "Is there availability?" The next piece of functionality, is this check availability method. I'm going to ask you to write the code in here, to make this work. At the moment, what we're doing, is we're finding a seat from the theater service. That definitely needs to change. We need to find a seat from the repository. Going forward, we need to call our BookingService.isSeatFree. Actually, that method, Sorry, I'm just going to stop this running in the background. That method on our BookingService.isSeatFree. Let's just go and find it. Now we want to know not just what the seat is, but also what the performance is. I'm just going to put a little note in here that says, we'll need to make this work. By make this work what I mean is we'll need to go, and see if we can find a matching booking for this particular seat and performance, and if there is one we'll return faulse, it's…
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)
-