View Code

Let’s learn how the Retrieve/List All use case will be implemented.

Retrieve and List All

In the UI code, we can now exploit the inverse reference properties more effectively if we create a list of inversely associated objects in the Retrieve/List All use case. For example, we can create a list of all published books for each publisher quickly and efficiently.

However, we don’t allow the updating of the set of inversely associated objects in the Update Object use case. An example of this would be if we try to update the set of published books in the Update Publisher use case). Rather, we need to update the leader objects concerned. In our example, this is the Book object.

Show information about published books

To show information about published books in the Retrieve/List All Publishers use case, we can now exploit the publishedBooks derived inverse reference property:

Get hands-on with 1200+ tech skills courses.