Actually it’s from the 1990s!
An AGGREGATE is a cluster of associated objects that we treat as a unit.
It makes life much easier if you just keep a reference of the aggregate’s ID rather than the actual aggregate itself.
Everything within an aggregate.
Lock on the aggregate root.
Nobody cares if the entity referenced by an id exists.
Model aggregate boundaries in the domain model.
Reconsider where you want foreign keys.
Dad, Board&Roleplaying Gamer, Runner, Bouldering, Freeletics Masochist
JUG Organizer