Skip to content

Commit bfe514a

Browse files
committed
DATAMONGO-2304 - Polishing.
Align anchor naming. Add code fences to EntityCallbacks. Original pull request: #767.
1 parent 87343d2 commit bfe514a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/asciidoc/reference/mongo-entity-callbacks.adoc

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[[entity-callbacks.mongodb]]
1+
[[mongo.entity-callbacks]]
22
= Store specific EntityCallbacks
33

44
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
1212
| Order
1313

1414
| Reactive/BeforeConvertCallback
15-
| onBeforeConvert(T entity, String collection)
15+
| `onBeforeConvert(T entity, String collection)`
1616
| Invoked before a domain object is converted to `org.bson.Document`.
1717
| `Ordered.LOWEST_PRECEDENCE`
1818

1919
| Reactive/AuditingEntityCallback
20-
| onBeforeConvert(Object entity, String collection)
20+
| `onBeforeConvert(Object entity, String collection)`
2121
| Marks an auditable entity _created_ or _modified_
2222
| 100
2323

2424
| Reactive/BeforeSaveCallback
25-
| onBeforeSave(T entity, org.bson.Document target, String collection)
25+
| `onBeforeSave(T entity, org.bson.Document target, String collection)`
2626
| Invoked before a domain object is saved. +
2727
Can modify the target, to be persisted, `Document` containing all mapped entity information.
2828
| `Ordered.LOWEST_PRECEDENCE`

0 commit comments

Comments
 (0)