Skip to content

Commit 70f2e97

Browse files
committed
Make limitations of callbacks clear.
Closes #2195
1 parent 207347f commit 70f2e97

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/antora/modules/ROOT/pages/jdbc/events.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,6 @@ Do not use this for creating Ids for new aggregates. Use `BeforeConvertCallback`
108108
|===
109109

110110
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.
111+
112+
The delete and save related callbacks do not get invoked for derived query methods or annotated queries.
113+
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.

0 commit comments

Comments
 (0)