Skip to content

Commit f978fea

Browse files
authored
Associations tweaks (#2206)
Minor fixes and improvements for the CDL section on Associations
1 parent 77ed90e commit f978fea

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cds/cdl.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -995,6 +995,7 @@ entity Emp2Addr {
995995
```
996996

997997
[Learn more about **Managed Compositions for Many-to-many Relationships**.](#for-many-to-many-relationships){.learn-more}
998+
[Watch a short video by DJ Adams to see an example of how a link entity can be used.](https://www.youtube.com/shorts/yGg3YD1weIA){.learn-more}
998999

9991000

10001001
<div id="aftermanytomany" />
@@ -1023,13 +1024,14 @@ entity Orders.Items {
10231024
```
10241025

10251026
:::info Contained-in relationship
1026-
Essentially, Compositions are the same as _[associations](#associations)_, just with the additional information that this association represents a _contained-in_ relationship so the same syntax and rules apply in their base form.
1027+
Essentially, Compositions are the same as _[associations](#associations)_, just with the additional information that this association represents a _contained-in_ relationship; so the same syntax and rules apply in their base form.
10271028
:::
10281029

10291030
::: warning Limitations of Compositions of one
10301031
Using compositions of one for entities is discouraged. There is often no added value of using them as the information can be placed in the root entity. Compositions of one have limitations as follow:
10311032
- Very limited Draft support. Fiori elements does not support compositions of one unless you take care of their creation in a custom handler.
10321033
- No extensive support for modifications over paths if compositions of one are involved. You must fill in foreign keys manually in a custom handler.
1034+
See the [Keep it Simple, Stupid](/guides/domain-modeling#keep-it-simple-stupid) best practice, especially the [Prefer Flat Models](/guides/domain-modeling#prefer-flat-models) section.
10331035
:::
10341036

10351037
### Managed Compositions of Aspects {#managed-compositions}
@@ -1082,7 +1084,7 @@ aspect OrderItems {
10821084

10831085
#### Default Target Cardinality
10841086

1085-
If not otherwise specified, a managed composition of an aspect has the default target cardinality *to-one*.
1087+
If not otherwise specified, a managed composition of an aspect has the default target cardinality *to-one* for the backlink.
10861088

10871089
#### For Many-to-many Relationships
10881090

0 commit comments

Comments
 (0)