Skip to main content
Version: Next

KQ016 — part of is a tree

Error · part-of-is-a-tree · Data

part of forms a tree: each Data Entity is part of at most one other, with no circle.

part of goes round in a circle, or gives an entity two wholes. Each entity is part of at most one other.

Examples​

An invoice and an invoice line that are each part of the other go round in a circle, so they raise KQ016:

object invoice "Invoice" : selling object invoice-line "Invoice line" : selling component billing { sql billing-db "Billing DB" { invoice part of invoice-line [1] authoritative origin invoice-line part of invoice [1..*] authoritative origin } }

With the invoice as the root, the tree has one whole and raises nothing:

object invoice "Invoice" : selling object invoice-line "Invoice line" : selling component billing { sql billing-db "Billing DB" { root invoice authoritative origin invoice-line part of invoice [1..*] authoritative origin } }

© 2026 Extenza Works. All rights reserved.