EntityCallbacks
Spring Data R2DBC 使用 EntityCallback
API作为其审计支持,并对以下回调做出反应。
Spring Data R2DBC uses the EntityCallback
API for its auditing support and reacts on the following callbacks.
Callback | Method | Description | Order |
---|---|---|---|
BeforeConvertCallback |
|
Invoked before a domain object is converted to |
|
AfterConvertCallback |
|
Invoked after a domain object is loaded. Can modify the domain object after reading it from a row. |
|
AuditingEntityCallback |
|
Marks an auditable entity created or modified |
100 |
BeforeSaveCallback |
|
Invoked before a domain object is saved.
Can modify the target, to be persisted, |
|
AfterSaveCallback |
|
Invoked after a domain object is saved.
Can modify the domain object, to be returned after save, |
|