我想知道为什么新对象的初始提交不是可见的更改列表?
例如,当我有:
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 打印是空的!为什么?
问候,杰拉德