Skip to main content
Version: 0.4.0

KQ247 — an access names an aggregate

Error · access-names-an-aggregate · Data

An access names the root of an aggregate, or a data entity in no aggregate, never a part.

A reads or writes line names a data entity that is part of another. An access names the aggregate by its root and covers every part of it. Name the root instead.

Examples​

In erp-db, the order line is part of the order, so an access to the line raises KQ247:

erp/invoicing reads erp/erp-db/order-line

An access to the order, the root, covers its lines and raises nothing:

erp/invoicing reads erp/erp-db/order

© 2026 Extenza Works. All rights reserved.