Javers审核自定义“删除”的方式是什么? 使用spring-boot集成, 例如:
@Transactional
@Modifying
@Query(" delete from ExecutePayment exeP " +
" where exeP.customer = :customer " +
" and exeP.status = 'EXECUTED' ")
void deletePendingExecutionsFromCustomer(@Param("customer") Customer customer);
答案 0 :(得分:2)
JaVers不支持JPA查询语言。您需要包装此方法并手动调用javers.commitShallowDelete()
。