AggregateType

data class AggregateType(val context: String, val name: String)

The kind of an aggregate: the bounded context it belongs to and its name within it. It is a name, not a JVM class.

Constructors

Link copied to clipboard
constructor(context: String, name: String)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun ref(tenantId: String, id: String): AggregateRef

Refers to the instance id of this type under tenantId.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard

Refers to a new instance of this type under tenantId whose id is not chosen yet (AggregateRef.UNASSIGNED): the target of a creation command that leaves its id to admission.