Skip to content

Java Migration Guide: Removed APIs #1879

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 28, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions java/migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,16 @@ The following table gives an overview about the removed properties:
| `cds.multiTenancy.subscriptionManager.`<br>`clientCertificateHeader` | `cds.security.authentication.`<br>`clientCertificateHeader` |
| `cds.multiTenancy.security.`<br>`internalUserAccess.enabled` | `cds.security.authentication.`<br>`internalUserAccess.enabled` |

### Removed Java APIs

- Removed deprecated classes:
- `com.sap.cds.ql.cqn.CqnSearchPredicate`, use `CqnSearchTermPredicate` instead

- 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(String alias)` instead
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use as(String alias) instead

Do we need any replacement? Or can we just put the selectable value on the select list? Please double-check.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we need the replacement. SelectableValue does not extend CqnSelectListItem. All values on the select list shall have an implicit or explicit alias now.


## CAP Java 2.10 to CAP Java 3.0 { #two-to-three }

### Minimum Versions
Expand Down