2016-07-25 77 views
0

Javers审核自定义“删除”的方式是什么?使用 例如弹簧引导整合, :Javers审核自定义删除

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

也许使用方面? – Thiago

+0

并为查询的每个结果数据? – Thiago

回答

2

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

+0

好的!感谢您的回答 – Thiago