JaversAuditableRepositoryAspect does not properly handle thrown exceptions #355
Javers Spring support uses JaversAuditableRepositoryAspect on Spring-Data
Here's the original StackOverflow question for reference.
The text was updated successfully, but these errors were encountered:
…hrown exceptions Solution is to use @AfterReturning which only runs on a noraml method exit, and @AfterThrowing which checks if @transactional was used on the @repository method, and if noRollbackFor or noRollbackForClassName is configured (still commit even if these Exceptions/Throwables are thrown) and matches the current Throwable, still proceed with the versioning.