【问题标题】:Javers audit a custom deleteJavers 审核自定义删除
【发布时间】:2016-07-25 18:45:57
【问题描述】:

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

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

【问题讨论】:

  • 也许使用 Aspect ??
  • 对于查询的每个结果数据?

标签: java spring spring-boot javers


【解决方案1】:

JaVers 不支持 JPA 查询语言。你需要把这个方法包装起来,手动调用javers.commitShallowDelete()

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-03-08
    • 2018-05-11
    • 2019-08-27
    • 2019-11-08
    • 1970-01-01
    • 2012-05-20
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多