@FunctionalInterface public interface BeforeSaveCallback<T> extends EntityCallback<T>
|Modifier and Type||Method and Description|
Entity callback method invoked before a domain object is saved.
org.reactivestreams.Publisher<T> onBeforeSave(T entity, OutboundRow row, org.springframework.data.relational.core.sql.SqlIdentifier table)
OutboundRowcontents. This method is called after converting the
OutboundRowso effectively the row is used as outcome of invoking this callback. Changes to the domain object are not taken into account for saving, only changes to the row. Only transient fields of the entity should be changed in this callback. To change persistent the entity before being converted, use the
entity- the domain object to save.
table- name of the table.
Copyright © 2018–2021 Pivotal Software, Inc.. All rights reserved.