Skip to content

Commit a82c86c

Browse files
committed
Polishing.
Move IsNew detection into core concepts, add xrefs. See #1427
1 parent baaf350 commit a82c86c

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

src/main/antora/modules/ROOT/nav.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
* xref:index.adoc[Overview]
22
** xref:commons/upgrade.adoc[]
3+
** xref:migration-guides.adoc[]
4+
*** xref:migration-guide/migration-guide-1.5-to-2.0.adoc[]
5+
*** xref:migration-guide/migration-guide-2.2-to-3.0.adoc[]
6+
*** xref:migration-guide/migration-guide-3.0-to-4.0.adoc[]
37
48
* xref:cassandra.adoc[]
59
** xref:cassandra/getting-started.adoc[]
@@ -38,8 +42,4 @@
3842
** xref:kotlin/extensions.adoc[]
3943
** xref:kotlin/coroutines.adoc[]
4044
41-
* xref:migration-guides.adoc[]
42-
** xref:migration-guide/migration-guide-1.5-to-2.0.adoc[]
43-
** xref:migration-guide/migration-guide-2.2-to-3.0.adoc[]
44-
** xref:migration-guide/migration-guide-3.0-to-4.0.adoc[]
4545
* https://github.com/spring-projects/spring-data-commons/wiki[Wiki]

src/main/antora/modules/ROOT/pages/cassandra.adoc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44

55
Spring Data support for Apache Cassandra contains a wide range of features:
66

7-
* Spring configuration support with Java-based `@Configuration` classes or the XML namespace.
8-
* The `CqlTemplate`, `AsyncCqlTemplate`, and `ReactiveCqlTemplate` helper classes that increases productivity by properly handling common Cassandra data access operations.
9-
* The `CassandraTemplate`, `AsyncCassandraTemplate`, and `ReactiveCassandraTemplate` helper classes that provide object mapping between CQL Tables and POJOs.
10-
* Exception translation into Spring's portable {springDocsUrl}data-access.html#dao-exceptions[Data Access Exception Hierarchy].
11-
* Feature rich object mapping integrated with _Spring's_ {springDocsUrl}core.html#core-convert[Conversion Service].
12-
* Annotation-based mapping metadata that is extensible to support other metadata formats.
13-
* Java-based query, criteria, and update DSLs.
14-
* Automatic implementation of imperative and reactive `Repository` interfaces including support for custom finder methods.
7+
* Spring configuration support with xref:cassandra/configuration.adoc[Java-based `@Configuration` classes or the XML namespace].
8+
* The xref:cassandra/cql-template.adoc[`CqlTemplate`, `AsyncCqlTemplate`, and `ReactiveCqlTemplate`] helper classes that increases productivity by properly handling common Cassandra data access operations.
9+
* The xref:cassandra/template.adoc[`CassandraTemplate`, `AsyncCassandraTemplate`, and `ReactiveCassandraTemplate`] helper classes that provide object mapping between CQL Tables and POJOs.
10+
* xref:cassandra/cql-template.adoc#exception-translation[Exception translation] into Spring's portable {springDocsUrl}data-access.html#dao-exceptions[Data Access Exception Hierarchy].
11+
* Feature rich xref:object-mapping.adoc[object mapping] integrated with _Spring's_ {springDocsUrl}core.html#core-convert[Conversion Service].
12+
* xref:object-mapping.adoc#mapping.usage-annotations[Annotation-based mapping] metadata that is extensible to support other metadata formats.
13+
* Java-based xref:cassandra/template.adoc#cassandra.template.query[query, criteria, and update DSLs].
14+
* Automatic implementation of xref:repositories.adoc[imperative and reactive `Repository` interfaces] including support for xref:repositories/custom-implementations.adoc[custom query methods].
1515

1616
For most data-oriented tasks, you can use the `[Reactive|Async]CassandraTemplate` or the `Repository` support, both of which use the rich object-mapping functionality. `[Reactive|Async]CqlTemplate` is commonly used to increment counters or perform ad-hoc CRUD operations. `[Reactive|Async]CqlTemplate` also provides callback methods that make it easy to get low-level API objects, such as `com.datastax.oss.driver.api.core.CqlSession`, which lets you communicate directly with Cassandra.
1717
Spring Data for Apache Cassandra uses consistent naming conventions on objects in various APIs to those found in the DataStax Java Driver so that they are familiar and so that you can map your existing knowledge onto the Spring APIs.

src/main/antora/modules/ROOT/pages/object-mapping.adoc

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -519,11 +519,3 @@ The `@Indexed` annotation can be applied to single properties of embedded entiti
519519
====
520520

521521
CAUTION: Index creation on session initialization may have a severe performance impact on application startup.
522-
523-
[[cassandra.entity-persistence.state-detection-strategies]]
524-
include::{commons}@data-commons::page$is-new-state-detection.adoc[leveloffset=+1]
525-
526-
NOTE: Cassandra provides no means to generate identifiers upon inserting data.
527-
As consequence, entities must be associated with identifier values.
528-
Spring Data defaults to identifier inspection to determine whether an entity is new.
529-
If you want to use xref:cassandra/auditing.adoc[auditing] make sure to either use xref:cassandra/template.adoc#cassandra.template.optimistic-locking[Optimistic Locking] or implement `Persistable` for proper entity state detection.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
11
include::{commons}@data-commons::page$repositories/core-concepts.adoc[]
2+
3+
[[cassandra.entity-persistence.state-detection-strategies]]
4+
include::{commons}@data-commons::page$is-new-state-detection.adoc[leveloffset=+1]
5+
6+
NOTE: Cassandra provides no means to generate identifiers upon inserting data.
7+
As consequence, entities must be associated with identifier values.
8+
Spring Data defaults to identifier inspection to determine whether an entity is new.
9+
If you want to use xref:cassandra/auditing.adoc[auditing] make sure to either use xref:cassandra/template.adoc#cassandra.template.optimistic-locking[Optimistic Locking] or implement `Persistable` for proper entity state detection.

0 commit comments

Comments
 (0)