diff --git a/.cdsrc.json b/.cdsrc.json
index 13ea4853..1b3e86ae 100644
--- a/.cdsrc.json
+++ b/.cdsrc.json
@@ -2,7 +2,8 @@
"requires": {
"multitenancy": true,
"extensibility": true,
- "toggles": true
+ "toggles": true,
+ "ord": true
},
"profile": "with-mtx-sidecar",
"odata": {
diff --git a/.gitignore b/.gitignore
index f9986b41..aa2210aa 100644
--- a/.gitignore
+++ b/.gitignore
@@ -36,3 +36,5 @@ hs_err*
/chart/
.reloadtrigger
+
+srv/src/main/resources/ord/**
diff --git a/db/package.json b/db/package.json
index f35c820b..24729798 100644
--- a/db/package.json
+++ b/db/package.json
@@ -9,6 +9,6 @@
},
"scripts": {
"start": "node node_modules/@sap/hdi-deploy/deploy.js --use-hdb",
- "build": "npm ci && npx cds build .. --for hana --production"
+ "build": "npm install && npx cds build .. --for hana --production"
}
}
diff --git a/mtx/sidecar/package.json b/mtx/sidecar/package.json
index 2de24e1f..3ee67a63 100644
--- a/mtx/sidecar/package.json
+++ b/mtx/sidecar/package.json
@@ -1,10 +1,12 @@
{
+ "name": "bookshop-cds",
"dependencies": {
"@cap-js/hana": "^2",
"@sap/cds": "^9",
"@sap/cds-mtxs": "^3",
"@sap/xssec": "^4",
- "express": "^4"
+ "express": "^4",
+ "@cap-js/ord": "^1.6.0"
},
"devDependencies": {
"@cap-js/sqlite": "^2"
@@ -13,10 +15,15 @@
"node": "^22"
},
"cds": {
- "profiles": ["mtx-sidecar", "java"]
+ "profiles": ["mtx-sidecar", "java"],
+ "ord": {
+ "namespace": "sap.sample",
+ "policyLevels": ["sap:core:v1"],
+ "description": "This is a custom description"
+ }
},
"scripts": {
"start": "cds-serve",
- "build": "cds build ../.. --for mtx-sidecar --production && npm ci --prefix gen"
+ "build": "cds build ../.. --for mtx-sidecar --production && npm install --prefix gen"
}
}
diff --git a/package.json b/package.json
index 2eb41c16..c245f911 100644
--- a/package.json
+++ b/package.json
@@ -4,7 +4,8 @@
"description": "Generated by cds-services-archetype",
"devDependencies": {
"@sap/cds-dk": "9.8.1",
- "@sap/cds-mtxs": "^3"
+ "@sap/cds-mtxs": "^3",
+ "@cap-js/ord": "^1.6.0"
},
"workspaces": [
"mtx/sidecar"
diff --git a/pom.xml b/pom.xml
index 5671f1ac..f73ae3d8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -28,7 +28,7 @@
21
- 4.8.0
+ 4.9.0
5.27.0
3.6.8
4.1.0
diff --git a/srv/pom.xml b/srv/pom.xml
index 6dd530c1..0f32f526 100644
--- a/srv/pom.xml
+++ b/srv/pom.xml
@@ -64,6 +64,12 @@
runtime
+
+ com.sap.cds
+ cds-feature-ord
+ runtime
+
+
com.sap.cloud.sdk.cloudplatform
@@ -218,6 +224,7 @@
build --for java
+ build --for ord -o "${project.basedir}/src/main/resources/ord"
deploy --to h2 --with-mocks --dry --out "${project.basedir}/src/main/resources/schema-h2.sql"
compile srv/cat-service.cds -2 openapi --openapi:url /api/browse >
"${project.basedir}/src/main/resources/swagger/openapi.json"