Jade 7

Inverse References and Integrity

The library root object should know the books it has acquired. Why should each book have a reference back to the library?

The reason is that JADE maintains the integrity of the objects and collections involved in an inverse reference.

Suppose a book were lost then the corresponding object would be deleted. JADE would automatically remove the reference to the book from the library's allBooks collection.

Instructions (continued)

  1. For the related Book class, enter myLibrary as the name.
  2. Select LendingLibrary as the type.
  3. Change the access to public.
  4. Click the OK button.

If you have book objects, a message advises that the database needs reorganising. Do this now.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 Contents
 

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