move hierarchy to fiori

This commit is contained in:
D070615
2025-03-26 15:37:21 +01:00
parent 8860685080
commit 6601248229
4 changed files with 11 additions and 12 deletions

View File

@@ -1,12 +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 AdminService @(requires:'admin', path:'/admin') {
entity Books as projection on my.Books;
entity Authors as projection on my.Authors;
@readonly
@cds.search: {name}
entity GenreHierarchy as projection on my.Genres
}

View File

@@ -1,6 +1,13 @@
using { AdminService } from '@capire/bookstore';
using { sap.capire.bookshop } from '../../db/hierarchy';
using from '../common'; // to help UI linter get the complete annotations
extend service AdminService with {
@readonly
@cds.search: {name}
entity GenreHierarchy as projection on bookshop.Genres;
}
////////////////////////////////////////////////////////////////////////////
//
// Books Object Page

View File

@@ -85,10 +85,6 @@ annotate my.Genres with @(
}
);
annotate my.Genres with {
ID @Common.Text : name @Common.TextArrangement : #TextOnly;
}
////////////////////////////////////////////////////////////////////////////
//
// Genre Details

View File

@@ -1,4 +1,5 @@
namespace my.common;
namespace sap.capire.bookshop;
using { sap.capire.bookshop.Genres } from '@capire/bookshop';
aspect Hierarchy {
LimitedDescendantCount : Integer64 = null;
@@ -27,3 +28,5 @@ annotate Hierarchy with @Capabilities.SortRestrictions.NonSortableProperties: [
'MatchedDescendantCount',
'LimitedRank'
];
extend sap.capire.bookshop.Genres with Hierarchy;