This commit is contained in:
Daniel
2020-03-01 18:25:53 +01:00
parent 06755978b2
commit 3731a7ea23
43 changed files with 87 additions and 77 deletions

View File

@@ -1,6 +1,5 @@
using { sap.capire.contacts.PostalAddress } from './schema';
using { sap } from '@sap/cds/common';
namespace sap.capire.contacts;
namespace sap.common;
/**
* The Code Lists below are designed as optional extensions to
@@ -9,7 +8,6 @@ namespace sap.capire.contacts;
* annotate sap.common.Countries with @cds.persistence.skip:false;
*/
entity Countries as select from sap.common.Countries;
extend sap.common.Countries {
regions : Composition of many Regions on regions._parent = $self.code;
}
@@ -28,10 +26,3 @@ entity Districts : sap.common.CodeList {
key code : String(11);
city : Association to Cities;
}
annotate PostalAddress with {
district @ref: sap.capire.contacts.Districts;
city @ref: sap.capire.contacts.Cities;
region @ref: sap.capire.contacts.Regions;
country @ref: sap.capire.contacts.Countries;
}