Updated: 19 May 2025
Entity
An object that has an ID. Attributes may change but ID remains the same.
Value Objects
Immutable with no ID. Objects are considered equal if they have the same attributes.
Aggregate Root
…
Bounded Contex
The context within which a particular model applies.
Repository
An abstraction for persisting and retrieving objects. Hides the details of data access from the domain layer.
Factories
For creation of complex domain objects e.g. Aggregates.
Services
Use a Service when an operation does not fit naturally inside an Entity or Value Object. Encapsulates business logic which involves multiple entities.