SimpleStateAggregate
A simple implementation of StateAggregate that manages aggregate state through event sourcing.
This class applies domain events to update the aggregate's state, handles ownership transfers, deletion, and recovery events, and maintains versioning for consistency.
Type Parameters
The type of the aggregate state.
Constructors
Properties
The unique identifier of the aggregate.
The expected version for the next event to be applied.
The timestamp of the first event. Defaults to 0.
The operator who initiated the first event. Defaults to an empty string.
Metadata describing the state aggregate, including sourcing functions.
The identifier of the current owner of the aggregate. Defaults to OwnerId.DEFAULT_OWNER_ID.
The identifier of the current space of the aggregate. Defaults to SpaceIdCapable.DEFAULT_SPACE_ID.
The current version of the aggregate. Defaults to Version.UNINITIALIZED_VERSION.