AggregateIdSource

Where an aggregate's id comes from, as @AggregateRoot(idSource) declares it.

Entries

Link copied to clipboard

The id the request names, or, for a command that creates its aggregate and names none, one admission generates. The default.

Link copied to clipboard

The id is its owner's: each owner has one such aggregate in its tenant, such as a buyer's basket. An owner-level caller addresses it as "mine", by no id, and admission takes the caller's owner for it; naming another id is forbidden. A caller with no owner (a tenant-level caller, a service, a saga's command) names the id. No id is ever generated, the aggregate records its id as its owner, and its owner cannot be transferred. It belongs to its owner (Ownership.OWNER).

Companion properties

Link copied to clipboard

Returns an immutable kotlin.enums.EnumEntries list containing the constants of this enum type, in the order they're declared.

Companion functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.