Thiago
Thiago

Reputation: 13

Javers audit a custom delete

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);

Upvotes: 0

Views: 1522

Answers (1)

Bartek Walacik
Bartek Walacik

Reputation: 3496

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

Upvotes: 2

Related Questions