You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cds/cdl.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -995,6 +995,7 @@ entity Emp2Addr {
995
995
```
996
996
997
997
[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}
998
999
999
1000
1000
1001
<divid="aftermanytomany" />
@@ -1023,13 +1024,14 @@ entity Orders.Items {
1023
1024
```
1024
1025
1025
1026
:::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.
1027
1028
:::
1028
1029
1029
1030
::: warning Limitations of Compositions of one
1030
1031
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:
1031
1032
- Very limited Draft support. Fiori elements does not support compositions of one unless you take care of their creation in a custom handler.
1032
1033
- 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.
1033
1035
:::
1034
1036
1035
1037
### Managed Compositions of Aspects {#managed-compositions}
@@ -1082,7 +1084,7 @@ aspect OrderItems {
1082
1084
1083
1085
#### Default Target Cardinality
1084
1086
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.
0 commit comments