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.

Adding services

Adding services

- [Instructor] Okay, so now we're ready to build the Model part of our application, and we've got this file here called Theater which contains the data class called Seats, and the class called Theater, that is generating the list of Seats with their various values and so on. So, I said that we'll make the data class the domain class for this application. So I think what we should do, is create a new package, which we'll call domain. And then I'm going to cut the data class Seat out of here and we'll create it as a new file in the domain class, in the domain package. Paste that in there. And yes, we'll need to import BigDecimal, that's fine. Now the Seat is going to be slightly different to the one that we created before. In that, we've now decided that our rows are going to be chars rather than integers, so we'll just change that to a char. Other than that, I think the rest of that looks absolutely fine. At the moment, these are all vals. Now we will need to think about whether this…

Contents