Aggregate
annotation class Aggregate(val name: String, val tenantId: String = "", val id: String = "", val scopes: Array<String> = [], val packageScopes: Array<KClass<*>> = [])
Defines an aggregate within a bounded context.
Aggregates are clusters of domain objects that can be treated as a single unit for data changes. Each aggregate has a root entity and may contain other entities and value objects.