From 1b69064752b2515fb5984f81cf1da6c83ed7d328 Mon Sep 17 00:00:00 2001 From: Christian Georgi Date: Fri, 31 Jul 2020 16:44:05 +0200 Subject: [PATCH] Make cuid.ID Core.Computed for now + TODO to check w/ Fiori --- orders/db/schema.cds | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/orders/db/schema.cds b/orders/db/schema.cds index 048aba28..f72f737a 100644 --- a/orders/db/schema.cds +++ b/orders/db/schema.cds @@ -14,3 +14,7 @@ entity OrderItems : cuid { amount : Integer; netAmount : Decimal(9,2); } + +// Have IDs auto-computed. TODO revisit w/ Fiori how long this is needed +// see https://answers.sap.com/questions/13091274/sample-fiori-app-creating-a-new-order-shows-a-popu.html +annotate cuid with { ID @Core.Computed; }