Skip to content

Commit

Permalink
Polishing.
Browse files Browse the repository at this point in the history
See #1538
  • Loading branch information
mp911de committed Jun 14, 2023
1 parent 61c7729 commit 7ca1797
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/asciidoc/jdbc.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,7 @@ The following table describes the available events. For more details about the e
| Before an aggregate root gets converted into a plan for executing SQL statements, but after the decision was made if the aggregate is new or not, i.e. if an update or an insert is in order.

| {javadoc-base}/org/springframework/data/relational/core/mapping/event/BeforeSaveEvent.html[`BeforeSaveEvent`]
| Before an aggregate root gets saved (that is, inserted or updated but after the decision about whether if it gets inserted or updated was made). Do not use this for creating Ids for new aggregates. Use `BeforeConvertEvent` or even better `BeforeConvertCallback` instead.
| Before an aggregate root gets saved (that is, inserted or updated but after the decision about whether if it gets inserted or updated was made).

| {javadoc-base}org/springframework/data/relational/core/mapping/event/AfterSaveEvent.html[`AfterSaveEvent`]
| After an aggregate root gets saved (that is, inserted or updated).
Expand Down Expand Up @@ -954,6 +954,7 @@ Spring Data JDBC uses the `EntityCallback` API for its auditing support and reac

| {javadoc-base}/org/springframework/data/relational/core/mapping/event/BeforeSaveCallback.html[`BeforeSaveCallback`]
| Changes made to the aggregate root may get considered, but the decision if an id value will be sent to the database is already made in the previous step.
Do not use this for creating Ids for new aggregates. Use `BeforeConvertCallback` instead.

2+| The SQL statements determined above get executed against the database.

Expand Down

0 comments on commit 7ca1797

Please sign in to comment.