fix after moving to fiori

This commit is contained in:
D070615
2025-03-27 13:50:28 +01:00
parent f468d8e40f
commit dba762bbff
7 changed files with 56 additions and 37 deletions

View File

@@ -1,6 +1,31 @@
/*
This model controls what gets served to Fiori frontends...
*/
using { sap.capire.bookshop } from '../db/hierarchy';
using { AdminService } from '@capire/bookstore';
extend service AdminService with {
@readonly
@cds.search: {name}
entity GenreHierarchy as projection on bookshop.Genres;
}
annotate AdminService.GenreHierarchy with @Aggregation.RecursiveHierarchy #GenreHierarchy: {
$Type : 'Aggregation.RecursiveHierarchyType',
NodeProperty : ID, // identifies a node
ParentNavigationProperty: parent // navigates to a node's parent
};
annotate AdminService.GenreHierarchy with @Hierarchy.RecursiveHierarchy #GenreHierarchy: {
$Type : 'Hierarchy.RecursiveHierarchyType',
LimitedDescendantCount: LimitedDescendantCount,
DistanceFromRoot : DistanceFromRoot,
DrillState : DrillState,
Matched : Matched,
MatchedDescendantCount: MatchedDescendantCount,
LimitedRank : LimitedRank
};
using from './admin-authors/fiori-service';
using from './admin-books/fiori-service';
@@ -8,3 +33,4 @@ using from './browse/fiori-service';
using from './common';
using from '@capire/bookstore/srv/mashup';