AggregateRoot
Base class for aggregate roots in Domain-Driven Design.
An aggregate root is the entry point to an aggregate cluster and is responsible for maintaining invariants within its aggregate boundary.
Parameters
id
the unique domain identifier.
Type Parameters
Id
the type of the aggregate root identifier (must extend EntityId).