MaterializedSnapshot
Data class representing a complete materialized snapshot of an aggregate's state.
This class contains all the information about an aggregate's state at a specific point in time, including metadata about the aggregate, versioning information, event tracking, and the actual state data. It implements multiple interfaces to provide comprehensive access to all snapshot properties.
Parameters
The type of the state data.
Properties
The unique identifier of this aggregate instance.
The name of the aggregate.
The name of the context this aggregate belongs to.
The timestamp of the first event for this aggregate.
The identifier of the first operator who performed an operation on this aggregate.
A computed property that indicates whether the entity has been initialized. Returns true if the version is greater than UNINITIALIZED_VERSION. This property is ignored during JSON serialization.
A computed property that indicates whether the entity is at its initial version. Returns true if the version equals INITIAL_VERSION. This property is ignored during JSON serialization.
The timestamp when this snapshot was created.
Functions
Checks if two aggregates belong to the same context and have the same aggregate name.
Checks if this entity belongs to the same bounded context as another entity.
Creates a new MaterializedSnapshot with the specified state.