Workaround for hdtabledata issue
This commit is contained in:
@@ -2,9 +2,14 @@
|
|||||||
// Add Author.age and .lifetime with a DB-specific function
|
// 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 {
|
extend projection AdminService.Authors with {
|
||||||
YEARS_BETWEEN(dateOfBirth, dateOfDeath) as age: Integer,
|
YEARS_BETWEEN(dateOfBirth, dateOfDeath) as age: Integer,
|
||||||
YEAR(dateOfBirth) || ' – ' || YEAR(dateOfDeath) as lifetime : String
|
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;
|
||||||
|
|||||||
Reference in New Issue
Block a user