File tree 1 file changed +3
-2
lines changed
src/main/java/org/springframework/data/domain
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>> {
38
38
private transient final @ Transient List <Object > domainEvents = new ArrayList <>();
39
39
40
40
/**
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.
42
42
*
43
43
* @param event must not be {@literal null}.
44
44
* @return the event that has been added.
@@ -86,7 +86,8 @@ protected final A andEventsFrom(A aggregate) {
86
86
}
87
87
88
88
/**
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.
90
91
* Does the same as {@link #registerEvent(Object)} but returns the aggregate instead of the event.
91
92
*
92
93
* @param event must not be {@literal null}.
You can’t perform that action at this time.
0 commit comments