Skip to content

Commit eb3923b

Browse files
shin-mallangmp911de
authored andcommitted
Document event publication from repository delete methods in AbstractAggregateRoot.
Added additional comment regarding registerEvent and andEvent in AbstractAggregateRoot. Closes: #2903
1 parent b259934 commit eb3923b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/org/springframework/data/domain/AbstractAggregateRoot.java

+3-2
Original file line numberDiff line numberDiff 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}.

0 commit comments

Comments
 (0)