Document entity state detection strategies.

Closes #1124
This commit is contained in:
Mark Paluch
2021-05-17 14:00:05 +02:00
parent 64866b7211
commit 7ca512a562

View File

@@ -516,6 +516,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