Javers审核自定义删除

时间:2016-07-25 18:45:58

标签: java spring spring-boot javers

Javers审核自定义“删除”的方式是什么? 使用spring-boot集成, 例如:

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

1 个答案:

答案 0 :(得分:2)

JaVers不支持JPA查询语言。您需要包装此方法并手动调用javers.commitShallowDelete()