Chapter 4. Practice Projects

Table of Contents

1. Project 1 - Managing Information about Movies
2. Project 2 - Managing Information about Countries

In most parts of the following projects you can follow, or even copy, the code of the book data management app presented in the tutorial.

For developing the apps, simply follow the sequence of seven steps described in the tutorial:

  1. Step 1 - Set up the Folder Structure

  2. Step 2 - Write the Model Code

  3. Step 3 - Configure and Initialize the Application

  4. Step 4 - Implement the Retrieve/List All Objects Use Case

  5. Step 5 - Implement the Create Object Use Case

  6. Step 6 - Implement the Update Object Use Case

  7. Step 7 - Implement the Delete Object Use Case

Also make sure that

  1. your HTML pages comply with the XML syntax of HTML5, preferably by checking with XHTML5 validation (setting the validator field Preset to "HTML5 + SVG 1.1 + MathML 3.0"),

  2. international characters are supported by using UTF-8 encoding for all HTML files,

  3. your Java code complies with our Coding Guidelines.

If you have any questions about how to carry out the following projects, you can ask them on our discussion forum.

If you would like to work on these practice projects with the guidance of a coach, then you should enrol in the introductory online course (book parts 1-3) offered by our partner developer-competence.com.

1. Project 1 - Managing Information about Movies

The purpose of the app is managing information about movies. The app deals with just one object type: Movie, as depicted in Figure 4.1 below. In the subsequent parts of the tutorial, you will extend this simple app by adding integrity constraints, enumerations, actors and directors as further model classes, and the associations between them.

Notice that in most parts of this project you can follow, or even copy, the code of the book data management app, except that in the Movie class there is an attribute with range Date, so

Figure 4.1. The object type Movie.

The object type Movie.

You can use the following sample data for testing your app:

Table 4.1. Sample data

Movie ID Title Release date
1 Pulp Fiction 1994-05-12
2 Star Wars 1977-05-25
3 Casablanca 1943-01-23
4 The Godfather 1972-03-15


More movie data can be found on the IMDb website.