Chapter 5. Unidirectional Non-Functional Associations with Java EE

Table of Contents
1. Implementing Multi-Valued Reference Properties in Java
2. Make a Java Entity Class Model
3. New issues
4. Write the Model Code
4.1. Summary
4.2. Code each class of the Java Entity class model
4.3. Implement a deletion policy
4.4. Serialization and De-Serialization
5. Write the User Interface Code
5.1. Show information about associated objects in Retrieve/List All
5.2. Allow selecting associated objects in Create
6. Run the App and Get the Code
7. Sets versus Ordered Sets as the Values of Reference Properties

A unidirectional non-functional association is either one-to-many or many-to-many. In both cases such an association is represented with the help of a multi-valued reference property.

In this chapter, we show

  1. how to derive a Java Entity class model from an OO class model with multi-valued reference properties representing unidirectional non-functional associations,

  2. how to code the Java Entity class model in the form of entity classes (implementing model classes),

  3. how to write the view and controller code based on the model code.