1
- [[entity-callbacks.mongodb ]]
1
+ [[mongo. entity-callbacks]]
2
2
= Store specific EntityCallbacks
3
3
4
4
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
12
12
| Order
13
13
14
14
| Reactive/BeforeConvertCallback
15
- | onBeforeConvert(T entity, String collection)
15
+ | ` onBeforeConvert(T entity, String collection)`
16
16
| Invoked before a domain object is converted to `org.bson.Document`.
17
17
| `Ordered.LOWEST_PRECEDENCE`
18
18
19
19
| Reactive/AuditingEntityCallback
20
- | onBeforeConvert(Object entity, String collection)
20
+ | ` onBeforeConvert(Object entity, String collection)`
21
21
| Marks an auditable entity _created_ or _modified_
22
22
| 100
23
23
24
24
| Reactive/BeforeSaveCallback
25
- | onBeforeSave(T entity, org.bson.Document target, String collection)
25
+ | ` onBeforeSave(T entity, org.bson.Document target, String collection)`
26
26
| Invoked before a domain object is saved. +
27
27
Can modify the target, to be persisted, `Document` containing all mapped entity information.
28
28
| `Ordered.LOWEST_PRECEDENCE`
0 commit comments