Labs
-
Create a new entity and JUnit test for the category table.
+-------+----------------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +-------+----------------------+------+-----+---------+----------------+ | id | smallint(5) unsigned | NO | PRI | NULL | auto_increment | | name | varchar(25) | NO | | NULL | | +-------+----------------------+------+-----+---------+----------------+ -
Add a bi-directional, many-to-many relationship between Film and Category. Use film_category as the join table. Be sure to write the get/set/add/remove methods.
-
Update your test cases for Category and Film to exercise the new relationship.