HybridJpaRepository save behavior on AR marked for deletion

Hi all,

i’m using an HybridJpaRepository and I’ve seen that by applying an event that implements AggregateDeletedEvent from the AR, the AR itself gets properly removed. Great!
However this event it’s not persisted on the eventstore.
That’s explained by the fact that HybridJpaRepository inherit the method doDeleteWithLock from GenericJpaRepository but doesn’t override it as it does with doSaveWithLock method.
Can someone explain me why?

Best Regards


Hi Domenico,

I’ll take a look at it soon. Sounds like a bug, though…