forked from SAP-archive/cloud-samples-foundation
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodes.cds
More file actions
29 lines (23 loc) · 717 Bytes
/
codes.cds
File metadata and controls
29 lines (23 loc) · 717 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
namespace clouds.foundation;
type Currency: String(3) @(
title: '{i18n>currencyCode}',
description: '{i18n>currencyCodeDescription}',
);
type Country: String(3) @(
title: '{i18n>countryCode}',
description: '{i18n>countryCodeDescription}',
);
type Language: String(2) @(
title: '{i18n>languageCode}',
description: '{i18n>languageCodeDescription}',
);
type Locale: String(6) @(
title: '{i18n>localeCode}',
description: '{i18n>localeCodeDescription}'
);
entity Currencies: CodeList { key code: Currency; }
entity Countries: CodeList { key code: Country; }
entity Languages: CodeList { key code: Language; }
abstract entity CodeList @cds.autoexpose {
name: localized String @title: '{i18n>codeListName}';
}