@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 to decide
whether the change will be an insert or update. Use the BeforeConvertCallback to change the persistent the
entity before being converted.aggregate - the aggregate.aggregateChange - the associated MutableAggregateChange.Copyright © 2017–2022 Pivotal Software, Inc.. All rights reserved.