add Authors, rename author attribute

This commit is contained in:
Gregor Wolf
2021-11-12 21:25:33 +01:00
parent 7964c9aefd
commit 2a44cfa9dc

View File

@@ -15,12 +15,18 @@ service CatalogService @(path : '/browse') {
*/
@readonly
entity Books as projection on my.Books {
* , author.name as author
* , author.name as authorName
} excluding {
createdBy,
modifiedBy
};
@readonly
entity Authors as projection on my.Authors excluding {
createdBy,
modifiedBy
};
@requires : 'authenticated-user'
action submitOrder(book : Books:ID, quantity : Integer) returns {
stock : Integer