added timestamp to make AccountDeletedEvent not empty

This commit is contained in:
dartpopikyardo
2016-09-15 16:55:56 +03:00
parent 72a4ab1ee4
commit 8f4ac83f4b
2 changed files with 18 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ import net.chrisrichardson.eventstore.javaexamples.banking.backend.common.accoun
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class Account extends ReflectiveMutableCommandProcessingAggregate<Account, AccountCommand> {
@@ -19,7 +20,7 @@ public class Account extends ReflectiveMutableCommandProcessingAggregate<Account
}
public List<Event> process(DeleteAccountCommand cmd) {
return EventUtil.events(new AccountDeletedEvent());
return EventUtil.events(new AccountDeletedEvent(new Date()));
}
public List<Event> process(DebitAccountCommand cmd) {