February 2013
Intermediate to advanced
656 pages
21h 26m
English
When designing Aggregates, we may desire a compositional structure that allows for traversal through deep object graphs, but that is not the motivation of the pattern. [Evans] states that one Aggregate may hold references to the Root of other Aggregates. However, we must keep in mind that this does not place the referenced Aggregate inside the consistency boundary of the one referencing it. The reference does not cause the formation of just one whole Aggregate. There are still two (or more), as shown in Figure 10.5.
Figure 10.5. There are two Aggregates, not one.
In Java the association would be modeled ...
Read now
Unlock full access