From a5b54b53cff125bab7548bc6cf70e7a38fb127b6 Mon Sep 17 00:00:00 2001 From: Christian Georgi Date: Mon, 15 Aug 2022 22:11:21 +0200 Subject: [PATCH] Workaround for hdtabledata issue --- fiori/db/hana/index.cds | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fiori/db/hana/index.cds b/fiori/db/hana/index.cds index 866e8741..783d4aab 100644 --- a/fiori/db/hana/index.cds +++ b/fiori/db/hana/index.cds @@ -2,9 +2,14 @@ // Add Author.age and .lifetime with a DB-specific function // -using { AdminService } from '@capire/bookshop'; +using { AdminService, sap.common } from '@capire/bookshop'; extend projection AdminService.Authors with { YEARS_BETWEEN(dateOfBirth, dateOfDeath) as age: Integer, YEAR(dateOfBirth) || ' – ' || YEAR(dateOfDeath) as lifetime : String } + + +// Workaround: include Countries table because csv files point to it +// TODO fix by ignoring hdbtabledata generation for unused entities +annotate common.Countries with @cds.persistence.skip : false;