rm tree table in catalogservice

This commit is contained in:
D070615
2025-03-21 10:16:33 +01:00
parent 5f5b32043c
commit 8fa029869e
6 changed files with 82 additions and 110 deletions

View File

@@ -1,6 +1,11 @@
using { sap.capire.bookshop as my } from '../db/schema';
using { my.common.Hierarchy as Hierarchy } from './hierarchy';
extend my.Genres with Hierarchy;
service AdminService @(requires:'admin', path:'/admin') {
entity Books as projection on my.Books;
entity Authors as projection on my.Authors;
entity Books as projection on my.Books;
entity Authors as projection on my.Authors;
@readonly
entity GenreHierarchy as projection on my.Genres
}

View File

@@ -1,7 +1,5 @@
using { sap.capire.bookshop as my } from '../db/schema';
using {my.common.Hierarchy as Hierarchy} from './hierarchy';
extend my.Genres with Hierarchy;
service CatalogService @(path:'/browse') {
/** For displaying lists of Books */
@@ -13,9 +11,6 @@ service CatalogService @(path:'/browse') {
author.name as author
} excluding { createdBy, modifiedBy };
@readonly
entity GenreHierarchy as projection on my.Genres;
@requires: 'authenticated-user'
action submitOrder ( book: Books:ID, quantity: Integer ) returns { stock: Integer };
event OrderedBook : { book: Books:ID; quantity: Integer; buyer: String };