Skip to content

Conversation

@qmacro
Copy link
Collaborator

@qmacro qmacro commented Nov 14, 2025

Minor fixes and improvements for the CDL section on Associations

syntax and rules apply because they're associations, not because a
contained-in relationship is represented
Emphasises the 'keep models simple' in the context of this warning about
compositions-of-one.
Reading the "managed composition" part made me first think of the
Orders:Items element when talking about the cardinality, but that's
to-many, which had me wondering for a sec. But I think what's being
referred to here is the backlink, i.e. this `up_` element:

```yaml
  Orders.Items:
    kind: entity
    includes: [OrderItems]
    elements:
      up_:
        key: true
        type: cds.Association
        cardinality: { min: 1, max: 1 }
        target: Orders
        keys: [{ ref: [ID] }]
        notNull: true
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants