Skip to content

Commit ae7159d

Browse files
MattSchurbeckermarcrenejeglinskysmahati
authored
Java: Draft Aggregations (#2181)
Co-authored-by: Marc Becker <[email protected]> Co-authored-by: René Jeglinsky <[email protected]> Co-authored-by: Mahati Shankar <[email protected]>
1 parent 8f945c1 commit ae7159d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

java/fiori-drafts.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ public Result delegateToS4(ActiveReadEventContext context) {
6060
When setting `cds.drafts.persistence` to `split` only queries that are specified by the SAP Fiori draft orchestration are supported.
6161
:::
6262

63+
### Aggregation Queries
64+
Aggregating over active and inactive draft entities isn't supported. Queries with aggregation functions implicitly add `IsActiveEntity` as a part of the group-by clause, resulting in disjunct `active` and `inactive` rows being returned instead of aggregated rows.
65+
6366
## Editing Drafts
6467

6568
When users edit a draft-enabled entity in the frontend, the following requests are sent to the CAP Java backend. As an effect, draft-specific events are triggered, as described in the following table. The draft-specific events are defined by the [DraftService](https://www.javadoc.io/doc/com.sap.cds/cds-services-api/latest/com/sap/cds/services/draft/DraftService.html) interface.

0 commit comments

Comments
 (0)