Labs

  1. 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    |                |
    +-------+----------------------+------+-----+---------+----------------+
    
  2. 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.

  3. Update your test cases for Category and Film to exercise the new relationship.


Prev -- Up