cat-services.cds: Use "type of" to use "Books:id"

The syntax `Books.id` (dot) is deprecated and is warned about in the latest
CDS releases.  It should be replaced by either `Books:id` (colon, supported
since cds-compiler v1.41.0) or `type of Books:id` (tested with cds-compiler
v1.20.0 from November 2019).
This commit is contained in:
Andre Meyering
2020-11-04 13:55:10 +01:00
committed by Christian Georgi
parent 7b5c60c3c7
commit c04c423c0d

View File

@@ -6,5 +6,5 @@ service CatalogService @(path:'/browse') {
} excluding { createdBy, modifiedBy };
@requires_: 'authenticated-user'
action submitOrder (book : Books.ID, amount: Integer);
action submitOrder (book : type of Books:ID, amount: Integer);
}