File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/main/java/org/springframework/data/domain Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ public class AbstractAggregateRoot<A extends AbstractAggregateRoot<A>> {
3838 private transient final @ Transient List <Object > domainEvents = new ArrayList <>();
3939
4040 /**
41- * Registers the given event object for publication on a call to a Spring Data repository's save methods.
41+ * Registers the given event object for publication on a call to a Spring Data repository's save or delete methods.
4242 *
4343 * @param event must not be {@literal null}.
4444 * @return the event that has been added.
@@ -86,7 +86,8 @@ protected final A andEventsFrom(A aggregate) {
8686 }
8787
8888 /**
89- * Adds the given event to the aggregate for later publication when calling a Spring Data repository's save-method.
89+ * Adds the given event to the aggregate for later publication
90+ * when calling a Spring Data repository's save or delete method.
9091 * Does the same as {@link #registerEvent(Object)} but returns the aggregate instead of the event.
9192 *
9293 * @param event must not be {@literal null}.
You can’t perform that action at this time.
0 commit comments