move hierarchy to fiori
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
namespace my.common;
|
||||
|
||||
aspect Hierarchy {
|
||||
LimitedDescendantCount : Integer64 = null;
|
||||
DistanceFromRoot : Integer64 = null;
|
||||
DrillState : String = null;
|
||||
Matched : Boolean = null;
|
||||
MatchedDescendantCount : Integer64 = null;
|
||||
LimitedRank : Integer64 = null;
|
||||
}
|
||||
|
||||
|
||||
annotate Hierarchy with @Capabilities.FilterRestrictions.NonFilterableProperties: [
|
||||
'LimitedDescendantCount',
|
||||
'DistanceFromRoot',
|
||||
'DrillState',
|
||||
'Matched',
|
||||
'MatchedDescendantCount',
|
||||
'LimitedRank'
|
||||
];
|
||||
|
||||
annotate Hierarchy with @Capabilities.SortRestrictions.NonSortableProperties: [
|
||||
'LimitedDescendantCount',
|
||||
'DistanceFromRoot',
|
||||
'DrillState',
|
||||
'Matched',
|
||||
'MatchedDescendantCount',
|
||||
'LimitedRank'
|
||||
];
|
||||
Reference in New Issue
Block a user