0

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

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

1 回答 1

2

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

于 2016-07-26T07:03:58.147 回答