You are given the following database diagram:
We will a show, network, actor, and character model. They will be associated in the following way:
- An actor has many characters and has many shows through characters.
- A character belongs to an actor and belongs to a show.
- A show has many characters and has many actors through characters.
- A show belongs to a network.
- A network has many shows.
Create the entities and relationship shown in the diagram.
The lab repository has the required dependencies defined in the pom.xml
file.
Create your entities in the models
package.