diff --git a/java-spring/accounts-command-side-backend/src/main/java/net/chrisrichardson/eventstore/javaexamples/banking/backend/commandside/accounts/Account.java b/java-spring/accounts-command-side-backend/src/main/java/net/chrisrichardson/eventstore/javaexamples/banking/backend/commandside/accounts/Account.java index e0b0163..0a4fc1f 100644 --- a/java-spring/accounts-command-side-backend/src/main/java/net/chrisrichardson/eventstore/javaexamples/banking/backend/commandside/accounts/Account.java +++ b/java-spring/accounts-command-side-backend/src/main/java/net/chrisrichardson/eventstore/javaexamples/banking/backend/commandside/accounts/Account.java @@ -20,7 +20,7 @@ public class Account extends ReflectiveMutableCommandProcessingAggregate process(DeleteAccountCommand cmd) { - return EventUtil.events(new AccountDeletedEvent(new Date())); + return EventUtil.events(new AccountDeletedEvent()); } public List process(DebitAccountCommand cmd) { diff --git a/java-spring/api-gateway-service/src/main/resources/application.properties b/java-spring/api-gateway-service/src/main/resources/application.properties index 578ae6c..f0c8de5 100755 --- a/java-spring/api-gateway-service/src/main/resources/application.properties +++ b/java-spring/api-gateway-service/src/main/resources/application.properties @@ -22,4 +22,7 @@ api.gateway.endpoints[4].method=POST api.gateway.endpoints[4].location=http://${customers.commandside.service.host}:8080 api.gateway.endpoints[5].path=[/]*api/transfers.* api.gateway.endpoints[5].method=POST -api.gateway.endpoints[5].location=http://${transfers.commandside.service.host}:8080 \ No newline at end of file +api.gateway.endpoints[5].location=http://${transfers.commandside.service.host}:8080 +api.gateway.endpoints[6].path=[/]*api/customers.* +api.gateway.endpoints[6].method=DELETE +api.gateway.endpoints[6].location=http://${customers.commandside.service.host}:8080 \ No newline at end of file diff --git a/java-spring/common-backend/src/main/java/net/chrisrichardson/eventstore/javaexamples/banking/backend/common/accounts/AccountDeletedEvent.java b/java-spring/common-backend/src/main/java/net/chrisrichardson/eventstore/javaexamples/banking/backend/common/accounts/AccountDeletedEvent.java index 516e13d..5b49081 100644 --- a/java-spring/common-backend/src/main/java/net/chrisrichardson/eventstore/javaexamples/banking/backend/common/accounts/AccountDeletedEvent.java +++ b/java-spring/common-backend/src/main/java/net/chrisrichardson/eventstore/javaexamples/banking/backend/common/accounts/AccountDeletedEvent.java @@ -5,21 +5,4 @@ import io.eventuate.Event; import java.util.Date; public class AccountDeletedEvent implements Event { - - private Date timestamp; - - public AccountDeletedEvent() { - } - - public AccountDeletedEvent(Date timestamp) { - this.timestamp = timestamp; - } - - public Date getTimestamp() { - return timestamp; - } - - public void setTimestamp(Date timestamp) { - this.timestamp = timestamp; - } }