Refactor db parts

This commit is contained in:
Christian Georgi
2022-06-21 16:13:31 +02:00
committed by Christian Georgi
parent cae45fcd87
commit babb5780b0
2 changed files with 15 additions and 14 deletions

14
fiori/db/common.cds Normal file
View File

@@ -0,0 +1,14 @@
namespace sap.capire.bookshop;
using { sap.capire.bookshop } from '@capire/bookstore/srv/mashup';
entity GenreHierarchy : bookshop.Genres {
hierarchyLevel : Integer default 0;
drillState : String default 'leaf';
parent : Association to GenreHierarchy;
children : Composition of many GenreHierarchy on children.parent = $self;
}
extend service CatalogService with {
@readonly entity GenreHierarchy as projection on bookshop.GenreHierarchy;
}