We will again start our project with a brief analysis of the domain model.
Designing the model
The core domain model
In this application, we want to manage collections of media of different types:
- Books
- Movies
- More, if you want
Each media type will have specific characteristics. For example, movies will have the following:
- A duration
- A director
Whereas books will have the following:
- The number of pages
- An author
Next to that, all media types will also have common characteristics such as the following:
- A unique identifier
- A name
- A description
- A picture location
- A genre
For genres, we can make use of an enum because there will be a fairly limited set of entries in our case and that set will mostly remain static. With...