@FunctionalInterface public interface BeforeSaveCallback<T> extends EntityCallback<T>
EntityCallbackthat gets invoked before changes are applied to the database, after the aggregate was converted to a database change.
T onBeforeSave(T aggregate, MutableAggregateChange<T> aggregateChange)
MutableAggregateChangecontents. This method is called after converting the
MutableAggregateChange. Changes to the aggregate are not taken into account for saving. Use the
BeforeConvertCallbackto change the persistent the entity before being converted.
aggregate- the aggregate.
aggregateChange- the associated
Copyright © 2017–2020 Pivotal Software, Inc.. All rights reserved.