From bfe514acd710d64fd4c12d5a41ba550e9a07f26b Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Mon, 1 Jul 2019 14:40:35 +0200 Subject: [PATCH] DATAMONGO-2304 - Polishing. Align anchor naming. Add code fences to EntityCallbacks. Original pull request: #767. --- src/main/asciidoc/reference/mongo-entity-callbacks.adoc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/asciidoc/reference/mongo-entity-callbacks.adoc b/src/main/asciidoc/reference/mongo-entity-callbacks.adoc index 02bd3ac19..7576a1734 100644 --- a/src/main/asciidoc/reference/mongo-entity-callbacks.adoc +++ b/src/main/asciidoc/reference/mongo-entity-callbacks.adoc @@ -1,4 +1,4 @@ -[[entity-callbacks.mongodb]] +[[mongo.entity-callbacks]] = Store specific EntityCallbacks Spring Data MongoDB uses the `EntityCallback` API for its auditing support and reacts on the following callbacks. @@ -12,17 +12,17 @@ Spring Data MongoDB uses the `EntityCallback` API for its auditing support and r | Order | Reactive/BeforeConvertCallback -| onBeforeConvert(T entity, String collection) +| `onBeforeConvert(T entity, String collection)` | Invoked before a domain object is converted to `org.bson.Document`. | `Ordered.LOWEST_PRECEDENCE` | Reactive/AuditingEntityCallback -| onBeforeConvert(Object entity, String collection) +| `onBeforeConvert(Object entity, String collection)` | Marks an auditable entity _created_ or _modified_ | 100 | Reactive/BeforeSaveCallback -| onBeforeSave(T entity, org.bson.Document target, String collection) +| `onBeforeSave(T entity, org.bson.Document target, String collection)` | Invoked before a domain object is saved. + Can modify the target, to be persisted, `Document` containing all mapped entity information. | `Ordered.LOWEST_PRECEDENCE`