This perspective might be helpful: in the end, it's all just a bunch of objects and functions that are termed differently depending on their role in this particular modeling paradigm. Value - a simple copy-by-value and equal-by-value data struct or object. Entity - an object. Aggregate - an encapsulated collection of interacting objects. AR - one object that serves as the interface/facade to the aggregate. Service - func or object that you didn't know what else to categorize as. Repository - function or object. It's just OO design with some fancy names and associated guidelines and quirks. 1/2
↧