Eliminate Associations from the Design Model
Explore how to replace unidirectional associations in your design model with reference properties in JavaScript. This lesson helps you understand implementing optional and multi-valued references in object-oriented class models to improve your front-end app design and code structure.
We'll cover the following...
Replace associations with reference properties
In the case of our running example, the Publisher-Book-Author information design model, we have to replace both unidirectional associations with suitable reference properties.
In the first step, we replace the many-to-one association Book-has-Publisher in the model on the left with a functional reference property publisher in the class Book. This results in the OO class model shown on the right:
Notice that since the target association end of the Book-has-Publisher ...