Javers的findChanges()方法在带有@Transactional注释的方法中使用时会引发异常
org.polyjdbc.core.exception.QueryExecutionException:[SELECT_ERROR]无法运行选择查询: 从jv_global_id中选择global_id_pk,local_id =吗? AND type_name =吗?
@Transactional(readOnly = true)
public void test(Integer saId) {
QueryBuilder jqlQuery = QueryBuilder.byInstanceId(saId,SomeClass.class).withChangedProperty(property);
Changes changes = javers.findChanges(jqlQuery.build());
}
如果我注释掉事务注释,一切正常