Timeline for What is the best way to initialize a child's reference to its parent?
Current License: CC BY-SA 3.0
2 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 10, 2014 at 19:24 | comment | added | supercat | I would use a slightly-looser definition of aggregate, which would allow for the existence of outside references into parts of the aggregate other than the root, provided that--from the point of view of an outside observer--the behavior would be consistent with every part of the aggregate holding only a reference to the root and not to any other part. To my mind, the key principle is that each mutable object should have one owner; an aggregate is a collection of objects which are all owned by a single object (the "aggregate root"), which should know of all references that exist to its parts. | |
| Oct 31, 2014 at 16:17 | history | answered | Michael Brown | CC BY-SA 3.0 |