Jade 7

Exclusive Collection

By making the myBooks collection exclusive it becomes very closely associated with its Borrower object. In fact, it is a sub-object, which has the following consequences

  • You do not need to create the myBooks collection object. It is automatically created when the Borrower object is created.
  • You do not need to delete the myBooks collection object. It is automatically deleted when the Borrower object is deleted.
  • You cannot reassign the myBooks reference to another BookDictionary object.

Inverse Reference

The myBooks reference enables the Borrower to know (and navigate to) the checked out Books. Because a Book needs to know who checked it out, you will define the inverse reference next.

Instructions

  1. In the Class Browser, select the Borrower class.
  2. Select the Properties | Add Reference... menu command.
  3. Enter myBooks as the name.
  4. Select BookDictionary as the type.
  5. Change the access to public.
  6. Click the Define Inverse... button. The dialog expands.
    Further instructions are given on the next page.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 Contents
 

For maximum reliability, security and performance of your JADE solution, JADE Care24 is our fully comprehensive systems management offering.