@FunctionalInterface public interface BeforeConvertCallback<T> extends EntityCallback<T>
EntityCallback
that gets invoked before the aggregate is converted into a database change. The decision if
the change will be an insert or update is already made when this callback gets called.
The main use of this kind of callback is to create application side Ids for aggregates where this isn't done on the database side.
Modifier and Type | Method and Description |
---|---|
T |
onBeforeConvert(T aggregate)
Entity callback method invoked before an aggregate root is converted to be persisted.
|
Copyright © 2017–2022 Pivotal Software, Inc.. All rights reserved.