Files
cloud-cap-samples/bookshop/srv/admin-service.cds
2021-11-10 11:12:18 +04:00

9 lines
369 B
Plaintext

using { sap.capire.bookshop as my } from '../db/schema';
service AdminService @(requires:'admin') {
entity Books as projection on my.Books;
entity Authors as projection on my.Authors;
}
//Since ID is computed, we can hide the popup for ID on Create
annotate AdminService.Books with { ID @Core.Computed; }
annotate AdminService.Authors with { ID @Core.Computed; }