Document entity state detection strategies.

Closes #1124
This commit is contained in:
Mark Paluch
2021-05-17 14:00:05 +02:00
parent 0f28a9d362
commit 1175496ff1

View File

@@ -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 <<cassandra.auditing,auditing>> make sure to either use <<cassandra.template.optimistic-locking>> or implement `Persistable` for proper entity state detection.
[[cassandra.mapping-usage.events]]
== Lifecycle Events