NamedAggregate

Represents an aggregate with a unique name within a specific bounded context. It inherits from NamedBoundedContext to get the context name and additionally defines the aggregate name.

See also

me.ahoo.wow.command.CommandBus
me.ahoo.wow.eventsourcing.EventStore

Inheritors

Properties

Link copied to clipboard
abstract val aggregateName: String

The name of the aggregate.

Link copied to clipboard
abstract val contextName: String

The name of the bounded context this entity belongs to.

Functions

Link copied to clipboard

Checks if two aggregates belong to the same context and have the same aggregate name.

Link copied to clipboard

Checks if this entity belongs to the same bounded context as another entity.