Skip to content

Commit 6f9475a

Browse files
committed
Document entity state detection strategies.
Closes #1124
1 parent 5b689da commit 6f9475a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/asciidoc/reference/mapping.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,10 @@ CAUTION: Index creation on session initialization may have a severe performance
518518

519519
include::./converters.adoc[]
520520

521+
include::../{spring-data-commons-docs}/is-new-state-detection.adoc[leveloffset=+1]
522+
523+
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 <<cassandra.auditing,auditing>> make sure to either use <<cassandra.template.optimistic-locking>> or implement `Persistable` for proper entity state detection.
524+
521525
[[cassandra.mapping-usage.events]]
522526
== Lifecycle Events
523527

0 commit comments

Comments
 (0)