From b41b1bf1b2fd1b6a6dc09ca153971bb2f9ce9ffc Mon Sep 17 00:00:00 2001 From: Vladimir Mikhaylenko Date: Tue, 26 Aug 2025 13:33:47 +0200 Subject: [PATCH 1/2] Document typed query results in codegen --- java/developing-applications/building.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/java/developing-applications/building.md b/java/developing-applications/building.md index 1487f33f1..238869563 100644 --- a/java/developing-applications/building.md +++ b/java/developing-applications/building.md @@ -483,6 +483,10 @@ Other options in this goal enable or disable certain features that change the wa The method `getService()` in generated [event-specific Event Context interfaces](../event-handlers/#eventcontext) is overridden to return the typed service interface instead of the generic `Service` type. +- [`linkedInterfaces`] + + This switch extends the generated interfaces so they support typed query results of type `CdsResult`. + :::warning Check migration guides! In major releases of CAP Java, some of these switches can be made the new default and some other switches might be removed. This might introduce compile errors in your application that needs to be fixed. From f3f1acc9aeb44a40d382c9cdc0c56ab5e00c645b Mon Sep 17 00:00:00 2001 From: Vladimir Mikhaylenko Date: Tue, 26 Aug 2025 13:36:18 +0200 Subject: [PATCH 2/2] Add link --- java/developing-applications/building.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/developing-applications/building.md b/java/developing-applications/building.md index 238869563..9514c5d81 100644 --- a/java/developing-applications/building.md +++ b/java/developing-applications/building.md @@ -483,7 +483,7 @@ Other options in this goal enable or disable certain features that change the wa The method `getService()` in generated [event-specific Event Context interfaces](../event-handlers/#eventcontext) is overridden to return the typed service interface instead of the generic `Service` type. -- [`linkedInterfaces`] +- [`linkedInterfaces`](/java/assets/cds-maven-plugin-site/generate-mojo.html#linkedInterfaces) This switch extends the generated interfaces so they support typed query results of type `CdsResult`.