AggregateId
Defines an aggregate root identifier that inherits multiple interfaces to support various functional requirements. As an identifier, it not only identifies the aggregate root but also supports naming, decorator pattern, tenant identification, and value comparison.
See also
Properties
Functions
Compares two AggregateId instances for ordering, first ensuring they belong to the same aggregate. If they don't belong to the same aggregate, an IllegalArgumentException is thrown. Otherwise, the comparison is based on the identifier.
Compares the current AggregateId object for equality with another object. This method provides business logic equality comparison for AggregateId objects, comparing all relevant properties rather than just reference equality.
Calculates a hash value for the AggregateId.
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.
Calculates the remainder when the ID's hash code is divided by the given divisor.