MaterializedNamedAggregate

data class MaterializedNamedAggregate(val contextName: String, val aggregateName: String) : NamedAggregate, Materialized

Represents a materialized named aggregate, providing concrete implementations of context and aggregate names.

This data class implements both NamedAggregate and Materialized, offering a fully resolved representation of an aggregate within a bounded context. It is used when the aggregate names are known at runtime and need to be stored or compared efficiently.

Constructors

Link copied to clipboard
constructor(contextName: String, aggregateName: String)

Creates a new MaterializedNamedAggregate with the specified context and aggregate names.

Properties

Link copied to clipboard
open override val aggregateName: String

The name of the aggregate within the bounded context.

Link copied to clipboard
open override val contextName: String

The name of the bounded context this aggregate belongs to.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int