3. New Issues

Compared to the single-class apps discussed in previous , we have to deal with a number of new technical issues:

  1. In the model code we now have to take care of reference properties that require

    1. defining referential integrity constraints with the help of suitable JPA annotations;

    2. extending the code of the create, update and delete methods by taking the reference properties into consideration;

    3. a method for converting between (internal) object references and corresponding (external) ID references in serialization and de-serialization operations.

  2. In the user interface (view) code we now have to take care of

    1. showing information about associated objects in the retrieve/list all use case;

    2. allowing to select an associated object from a list of all existing instances of the target class in the create object and update object use cases.