Search⌘ K
AI Features

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.

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 ...