我想知道为什么新对象的初始提交不是可见的更改列表?
当我有例如:
MyObject secondo = new MyObject(2);
javers.commit("Me",secondo);
List<Change> changes = javers.findChanges(
QueryBuilder.byInstanceId(2, MyObject.class).build());
String changeLog = javers.processChangeList(changes, new MyTextChangeLog());
System.out.println(changeLog);
我在控制台上看到以下INFO行:
2017-04-05 13:11:04.896 INFO 7425 --- [ main] org.javers.core.Javers : Commit(id:1.0, snapshots:1, author:Me, changes - NewObject:1), done in 97 millis (factory:97, persist:0)
然而,changeLog打印是空的!为什么呢?
此致 杰拉德
答案 0 :(得分:0)
您是否尝试过NewObject更改过滤器? http://javers.org/documentation/jql-examples/#new-object-filter