From 6f9475a7e573a9cd3c3f666e2745f1cef5511a38 Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Mon, 17 May 2021 14:00:05 +0200 Subject: [PATCH] Document entity state detection strategies. Closes #1124 --- src/main/asciidoc/reference/mapping.adoc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/asciidoc/reference/mapping.adoc b/src/main/asciidoc/reference/mapping.adoc index e96c6008f..2f41f3dd7 100644 --- a/src/main/asciidoc/reference/mapping.adoc +++ b/src/main/asciidoc/reference/mapping.adoc @@ -518,6 +518,10 @@ CAUTION: Index creation on session initialization may have a severe performance include::./converters.adoc[] +include::../{spring-data-commons-docs}/is-new-state-detection.adoc[leveloffset=+1] + +NOTE: Cassandra provides no means to generate identifiers upon inserting data. As consequence, entities must be associated with identifier values. Spring Data defaults to identifier inspection to determine whether an entity is new. If you want to use <> make sure to either use <> or implement `Persistable` for proper entity state detection. + [[cassandra.mapping-usage.events]] == Lifecycle Events