I discovered that the DomainEvents handling does not work with JpaRepository and saveAndFlush.
org.springframework.data.repository.core.support.EventPublishingRepositoryProxyPostProcessor.EventPublishingMethodInterceptor#invoke just takes care of the save method. So DomainEvents are not published on saveAndFlush
Mathias D opened DATAJPA-1113 and commented
I discovered that the
DomainEvents
handling does not work withJpaRepository
andsaveAndFlush
.org.springframework.data.repository.core.support.EventPublishingRepositoryProxyPostProcessor.EventPublishingMethodInterceptor#invoke
just takes care of thesave
method. So DomainEvents are not published onsaveAndFlush
Affects: 1.11.3 (Ingalls SR3)
Backported to: 1.11.4 (Ingalls SR4)
The text was updated successfully, but these errors were encountered: