public String getSnapshotEventEntryEntityName() {
return "CustomSnapshotEventEntry";
}
}));
testSubject.appendEvents("temp", new SimpleDomainEventStream(
new GenericDomainEventMessage<String>("id1", 1L, "Payload")));
testSubject.appendEvents("temp", new SimpleDomainEventStream(
new GenericDomainEventMessage<String>("id1", 2L, "Payload2")));
testSubject.appendSnapshotEvent("temp",
new GenericDomainEventMessage<String>("id1", 1L, "Snapshot1"));
entityManager.flush();