diff --git a/cap-notebook/demoapp/srv/attachment-extension.cds b/cap-notebook/demoapp/srv/attachment-extension.cds index f9873739..1701fb9a 100644 --- a/cap-notebook/demoapp/srv/attachment-extension.cds +++ b/cap-notebook/demoapp/srv/attachment-extension.cds @@ -4,13 +4,11 @@ using {sap,managed,sap.common.CodeList} from '@sap/cds/common'; extend entity Books with { attachments : Composition of many Attachments @SDM.Attachments:{maxCount: 4, maxCountError:'Only 4 attachments allowed.'}; + references : Composition of many Attachments @SDM.attachments:{maxCount: 2, maxCountError:'Only 2 attachments allowed.'}; + footnotes : Composition of many Attachments; } - extend entity Notebooks with { attachments : Composition of many Attachments @SDM.Attachments:{maxCount: 4, maxCountError:'Only 4 attachments allowed.'}; - references : Composition of many Attachments @SDM.attachments:{maxCount: 2, maxCountError:'Only 2 attachments allowed.'}; - footnotes : Composition of many Attachments; - } entity Statuses @cds.autoexpose @readonly { key code : StatusCode;