From b3a63f6a675742af94d207ce7d7edc87728204e6 Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Mon, 1 Jul 2019 15:12:31 +0200 Subject: [PATCH] DATACASS-4 - Polishing. Fix anchor for entity callbacks. --- .../reference/cassandra-entity-callbacks.adoc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/asciidoc/reference/cassandra-entity-callbacks.adoc b/src/main/asciidoc/reference/cassandra-entity-callbacks.adoc index 7b5c6e993..acecfe084 100644 --- a/src/main/asciidoc/reference/cassandra-entity-callbacks.adoc +++ b/src/main/asciidoc/reference/cassandra-entity-callbacks.adoc @@ -1,3 +1,4 @@ +[[cassandra.entity-callbacks]] = Store specific EntityCallbacks Spring Data for Apache Cassandra uses the `EntityCallback` API for its auditing support and reacts on the following callbacks. @@ -11,19 +12,19 @@ Spring Data for Apache Cassandra uses the `EntityCallback` API for its auditing | Order | Reactive/BeforeConvertCallback -| onBeforeConvert(T entity, String collection) -| Invoked before a domain object is converted to `org.bson.Document`. +| `onBeforeConvert(T entity, CqlIdentifier tableName)` +| Invoked before a domain object is converted to `com.datastax.driver.core.Statement`. | `Ordered.LOWEST_PRECEDENCE` | Reactive/AuditingEntityCallback -| onBeforeConvert(Object entity, String collection) +| `onBeforeConvert(Object entity, CqlIdentifier tableName)` | Marks an auditable entity _created_ or _modified_ | 100 | Reactive/BeforeSaveCallback -| onBeforeSave(T entity, org.bson.Document target, String collection) +| `onBeforeSave(T entity, CqlIdentifier tableName, Statement statement)` | Invoked before a domain object is saved. + - Can modify the target, to be persisted, `Document` containing all mapped entity information. + Can modify the target, to be persisted, `com.datastax.driver.core.Statement` containing all mapped entity information. | `Ordered.LOWEST_PRECEDENCE` |===