Question: Create a movie checkout system: Your system should be able to: switch between different customers (customers can be hard coded in the database) add new

Create a movie checkout system:

Your system should be able to:

switch between different customers (customers can be hard coded in the database)

add new movies

display all the movies in the database

search for a movie using keyword in movie title or description

checkout a movie for a particular customer

return a movie for a particular customer

display the checkout history for a particular customer

keep track of the number of available copies and only allow customers to checkout a movie when there are copies available

use REST API to retrieve a movie by title

use REST API to retrieve checkout history by customerId

the project should demonstrate the successful implementation of the following knowledge:

entity class design

database table structure and relationships

system setup (Maven dependencies, dispatcher servlet, database connection)

dependency injection

Spring MVC

Hibernate ORM mapping

Spring REST

3 layer architecture Presentation, UI design, and coding habit

Database design hint: Customer and Movie should have a many-to-many relationship. Instead of using many-to-many mapping, I used one-to-many between Customer and Checkout, and another one-to-many between Movie and Checkout. checkout table is the one that joins customer and movie.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!