on 06-02-2021 8:09 AM
I am referring to URL:
https://cap.cloud.sap/docs/java/query-api
I am trying to use CqnModifier to add a CqnSortSpecification to a select query. However, I can't find a way to create a new CqnSortSpecification so I can use the build-in add() function. This is my code:
CQL.copy(select, new CqnModifier() {
@Override
public List<CqnSortSpecification> orderBy(List<CqnSortSpecification> orderSpec) {
orderSpec.add(??);
return orderSpec;
}
Thanks in advance!
Please find the general documentation on how to create a sport specification here: Ordering and Pagination.
Well add an example for usage in a modifier.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
77 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.