You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DATACMNS-928 - Refinements for aggregate root domain event publication.
We now publish events for all methods named "save" on the repository. Fundamentally, that's in place to capture calls to CrudRepository.save(Iterable entities), too.
Some minor refactorings to the internal setup of EventPublishingMethodInterceptor. More JavaDoc.
Copy file name to clipboardExpand all lines: src/main/java/org/springframework/data/repository/core/support/EventPublishingRepositoryProxyPostProcessor.java
+19-7Lines changed: 19 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -65,14 +65,18 @@ public void postProcess(ProxyFactory factory, RepositoryInformation repositoryIn
Copy file name to clipboardExpand all lines: src/test/java/org/springframework/data/repository/core/support/EventPublishingRepositoryProxyPostProcessorUnitTests.java
+24-6Lines changed: 24 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,6 @@
25
25
importlombok.Value;
26
26
27
27
importjava.io.Serializable;
28
-
importjava.lang.reflect.Method;
29
28
importjava.util.Arrays;
30
29
importjava.util.Collection;
31
30
importjava.util.UUID;
@@ -129,14 +128,14 @@ public void doesNotCreatePublishingMethodIfNoAnnotationDetected() {
0 commit comments