From f8f7612645c6f16e7035c1271b8182531612b52c Mon Sep 17 00:00:00 2001 From: Jens Schauder Date: Wed, 17 Dec 2025 10:44:43 +0100 Subject: [PATCH] Make limitations of callbacks clear. Closes #2195 --- src/main/antora/modules/ROOT/pages/jdbc/events.adoc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/antora/modules/ROOT/pages/jdbc/events.adoc b/src/main/antora/modules/ROOT/pages/jdbc/events.adoc index 02f1ce26f..a97d6a9e2 100644 --- a/src/main/antora/modules/ROOT/pages/jdbc/events.adoc +++ b/src/main/antora/modules/ROOT/pages/jdbc/events.adoc @@ -108,3 +108,6 @@ Do not use this for creating Ids for new aggregates. Use `BeforeConvertCallback` |=== We encourage the use of callbacks over events since they support the use of immutable classes and therefore are more powerful and versatile than events. + +The delete and save related callbacks do not get invoked for derived query methods or annotated queries. +In general Spring Data JDBC does not have an efficient way to determine what aggregates are affected by these operations and therefore can't provide callbacks or events. \ No newline at end of file