@FunctionalInterface public interface BeforeSaveCallback<T> extends EntityCallback<T>
EntityCallback that gets invoked before changes are applied to the database, after the aggregate was
converted to a database change.| Modifier and Type | Method and Description |
|---|---|
T |
onBeforeSave(T aggregate,
MutableAggregateChange<T> aggregateChange)
Entity callback method invoked before an aggregate root is saved.
|
T onBeforeSave(T aggregate, MutableAggregateChange<T> aggregateChange)
MutableAggregateChange contents. This method is called after converting the
aggregate to MutableAggregateChange. Changes to the aggregate are not taken into account for
saving. Use the BeforeConvertCallback to change the persistent the entity before being converted.aggregate - the aggregate.aggregateChange - the associated MutableAggregateChange.Copyright © 2017–2021 Pivotal Software, Inc.. All rights reserved.