From 1175496ff1d54c7f749d74378301b54209dade60 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