Skip to content

Commit ec45886

Browse files
schaudermp911de
authored andcommitted
Fixes the documentation for BeforeConvertEvent and BeforeConvertCallback.
Original pull request: #912. Closes: #911
1 parent 5cf448d commit ec45886

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/asciidoc/jdbc.adoc

+4-2
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,8 @@ The following table describes the available events:
872872
| After an aggregate root gets deleted.
873873

874874
| {javadoc-base}/org/springframework/data/relational/core/mapping/event/BeforeConvertEvent.html[`BeforeConvertEvent`]
875-
| Before an aggregate root gets saved (that is, inserted or updated but after the decision about whether if it gets updated or deleted was made).
875+
| 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.
876+
This is the correct event if you want to set an id programmatically.
876877

877878
| {javadoc-base}/org/springframework/data/relational/core/mapping/event/BeforeSaveEvent.html[`BeforeSaveEvent`]
878879
| Before an aggregate root gets saved (that is, inserted or updated but after the decision about whether if it gets updated or deleted was made).
@@ -904,7 +905,8 @@ Spring Data JDBC uses the `EntityCallback` API for its auditing support and reac
904905
| After an aggregate root gets deleted.
905906

906907
| {javadoc-base}/org/springframework/data/relational/core/mapping/event/BeforeConvertCallback.html[`BeforeConvertCallback`]
907-
| Before an aggregate root gets saved (that is, inserted or updated but after the decision about whether if it gets updated or deleted was made).
908+
| 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.
909+
This is the correct callback if you want to set an id programmatically.
908910

909911
| {javadoc-base}/org/springframework/data/relational/core/mapping/event/BeforeSaveCallback.html[`BeforeSaveCallback`]
910912
| Before an aggregate root gets saved (that is, inserted or updated but after the decision about whether if it gets updated or deleted was made).

0 commit comments

Comments
 (0)