Browse Source

Make limitations of callbacks clear.

Closes #2195
main
Jens Schauder 10 hours ago
parent
commit
f8f7612645
No known key found for this signature in database
GPG Key ID: 2BE5D185CD2A1CE6
  1. 3
      src/main/antora/modules/ROOT/pages/jdbc/events.adoc

3
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` @@ -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.
Loading…
Cancel
Save