Creating Movie repository and controller classes
3.3 · Lesson

Creating Movie repository and controller classes

You have mapped the Movie and Person entities in the data domain. Now you need a Movie repository interface and controller class to access the movies in the database.

Start by creating a new file called MovieRepository.java in the src/main/java/com/example/appspringdata directory, choose interface as the type, and extend it to match the following: