0

What way Javers audit a custom 'delete'? Using spring-boot integration, for example:

@Transactional
@Modifying
@Query(" delete from ExecutePayment exeP " +
                " where exeP.customer = :customer " +
                "   and exeP.status = 'EXECUTED' ")
        void deletePendingExecutionsFromCustomer(@Param("customer") Customer customer);
Thiago
  • 13
  • 5

1 Answers1

2

JaVers doesn't support JPA query language. You need to wrap this method and call javers.commitShallowDelete() manually.

Bartek Walacik
  • 3,386
  • 1
  • 9
  • 14