NamedTypedAggregate

Interface combining named aggregate capabilities with type information.

This interface represents an aggregate that has both a name (within a bounded context) and type information, providing complete identification and typing for aggregates.

Parameters

A

The type of the aggregate.

Properties

Link copied to clipboard
abstract val aggregateName: String

The name of the aggregate.

Link copied to clipboard
abstract val aggregateType: Class<A>

The runtime class of the aggregate type.

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.