From 482b71e60b132a7332d6e2828089c1bdf0ac4497 Mon Sep 17 00:00:00 2001 From: Daniel Hutzel Date: Mon, 8 Nov 2021 14:23:41 +0100 Subject: [PATCH] Remove workaround for integrity check (#173) * Remove workaround for integrity check --- orders/db/schema.cds | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/orders/db/schema.cds b/orders/db/schema.cds index c543c200..b85e3a0d 100644 --- a/orders/db/schema.cds +++ b/orders/db/schema.cds @@ -11,7 +11,7 @@ entity Orders : cuid, managed { entity Orders_Items { key ID : UUID; up_ : Association to Orders; - product : Association to Products @assert.integrity:false; // REVISIT: this is a temporary workaround for a glitch in cds-runtime + product : Association to Products; quantity : Integer; title : String; //> intentionally replicated as snapshot from product.title price : Double; @@ -21,3 +21,9 @@ entity Orders_Items { entity Products @(cds.persistence.skip:'always') { key ID : String; } + + + + +// this is to ensure we have filled-in currencies +using from '@capire/common';