template.execute(new TransactionCallbackWithoutResult() {
@Override
protected void doInTransactionWithoutResult(
TransactionStatus status) {
DomainEventMessage firstEvent = aggregate2.getUncommittedEvents().next();
entityManager.persist(new DomainEventEntry("type",
new GenericDomainEventMessage(
"a",
new DateTime(),
"someValue",
0,
"",
MetaData.emptyInstance()),
emptySerializedObject,
emptySerializedObject));
}
});
template.execute(new TransactionCallbackWithoutResult() {
@Override
protected void doInTransactionWithoutResult(
TransactionStatus status) {
entityManager.persist(new DomainEventEntry("type",
new GenericDomainEventMessage(
"a",
new DateTime(),
"anotherValue",
0,