From beaff4038e0ce56f27e268f6d30bfea3fe30f0c5 Mon Sep 17 00:00:00 2001 From: Matthias Schur <107557548+MattSchur@users.noreply.github.com> Date: Tue, 27 May 2025 13:35:11 +0200 Subject: [PATCH 1/4] Java Migration Guide: Removed APIs --- java/migration.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/java/migration.md b/java/migration.md index 16431d2d5..17e27c5ef 100644 --- a/java/migration.md +++ b/java/migration.md @@ -122,6 +122,16 @@ The following table gives an overview about the removed properties: | `cds.multiTenancy.subscriptionManager.`
`clientCertificateHeader` | `cds.security.authentication.`
`clientCertificateHeader` | | `cds.multiTenancy.security.`
`internalUserAccess.enabled` | `cds.security.authentication.`
`internalUserAccess.enabled` | +### Removed Java APIs + +- Removed deprecated classes: + - `com.sap.cds.ql.cqn.CqnSearchPredicate` + +- Removed deprecated methods: + - `com.sap.cds.ql.cqn.Modifier.search(String term)` + - `com.sap.cds.ql.cqn.Modifier.selectListValue(Value value, String alias)` + - `com.sap.cds.ql.SelectableValue.withoutAlias()` + ## CAP Java 2.10 to CAP Java 3.0 { #two-to-three } ### Minimum Versions From 44fb089d48e684385b723b26a0cbf650ad4dc6f9 Mon Sep 17 00:00:00 2001 From: Matthias Schur <107557548+MattSchur@users.noreply.github.com> Date: Wed, 28 May 2025 09:47:14 +0200 Subject: [PATCH 2/4] Apply suggestions from code review --- java/migration.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/java/migration.md b/java/migration.md index 17e27c5ef..df1790099 100644 --- a/java/migration.md +++ b/java/migration.md @@ -125,12 +125,12 @@ The following table gives an overview about the removed properties: ### Removed Java APIs - Removed deprecated classes: - - `com.sap.cds.ql.cqn.CqnSearchPredicate` + - `com.sap.cds.ql.cqn.CqnSearchPredicate`, use `CqnSearchTermPredicate` instead - Removed deprecated methods: - - `com.sap.cds.ql.cqn.Modifier.search(String term)` - - `com.sap.cds.ql.cqn.Modifier.selectListValue(Value value, String alias)` - - `com.sap.cds.ql.SelectableValue.withoutAlias()` + - `com.sap.cds.ql.cqn.Modifier.search(String term)`, use `searchTerm(CqnSearchTermPredicate)` instead + - `com.sap.cds.ql.cqn.Modifier.selectListValue(Value value, String alias)`, use `selectListValue(SelectableValue)` instead + - `com.sap.cds.ql.SelectableValue.withoutAlias()`, use `as("alias")` instead ## CAP Java 2.10 to CAP Java 3.0 { #two-to-three } From b9fadc12384ad405c8e03fb7e3d1b88bb004bfb0 Mon Sep 17 00:00:00 2001 From: Matthias Schur <107557548+MattSchur@users.noreply.github.com> Date: Wed, 28 May 2025 09:48:45 +0200 Subject: [PATCH 3/4] Apply suggestions from code review --- java/migration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/migration.md b/java/migration.md index df1790099..4bc5ed5dd 100644 --- a/java/migration.md +++ b/java/migration.md @@ -129,7 +129,7 @@ The following table gives an overview about the removed properties: - Removed deprecated methods: - `com.sap.cds.ql.cqn.Modifier.search(String term)`, use `searchTerm(CqnSearchTermPredicate)` instead - - `com.sap.cds.ql.cqn.Modifier.selectListValue(Value value, String alias)`, use `selectListValue(SelectableValue)` instead + - `com.sap.cds.ql.cqn.Modifier.selectListValue(Value value, String alias)`, use `selectListValue(SelectableValue value, String alias)` instead - `com.sap.cds.ql.SelectableValue.withoutAlias()`, use `as("alias")` instead ## CAP Java 2.10 to CAP Java 3.0 { #two-to-three } From 82f1e313107bb128c0d1a4e5f01c7efa9e9502ec Mon Sep 17 00:00:00 2001 From: Matthias Schur <107557548+MattSchur@users.noreply.github.com> Date: Wed, 28 May 2025 09:50:10 +0200 Subject: [PATCH 4/4] Apply suggestions from code review --- java/migration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/migration.md b/java/migration.md index 4bc5ed5dd..21fa59e07 100644 --- a/java/migration.md +++ b/java/migration.md @@ -130,7 +130,7 @@ The following table gives an overview about the removed properties: - Removed deprecated methods: - `com.sap.cds.ql.cqn.Modifier.search(String term)`, use `searchTerm(CqnSearchTermPredicate)` instead - `com.sap.cds.ql.cqn.Modifier.selectListValue(Value value, String alias)`, use `selectListValue(SelectableValue value, String alias)` instead - - `com.sap.cds.ql.SelectableValue.withoutAlias()`, use `as("alias")` instead + - `com.sap.cds.ql.SelectableValue.withoutAlias()`, use `as(String alias)` instead ## CAP Java 2.10 to CAP Java 3.0 { #two-to-three }