@@ -19,7 +19,7 @@ This section explains how types are mapped to and from an Apache Cassandra repre
1919Spring Data for Apache Cassandra supports several types that are provided by Apache Cassandra.
2020In addition to these types, Spring Data for Apache Cassandra provides a set of built-in converters to map additional types.
2121You can provide your own custom converters to adjust type conversion.
22- See "`<<cassandra.mapping.explicit -converters>>`" for further details.
22+ See "`<<cassandra.custom -converters>>`" for further details.
2323The following table maps Spring Data types to Cassandra types:
2424
2525[cols="3,2",options="header"]
@@ -224,6 +224,7 @@ In this context, "`composite primary key`" means one or more partition columns o
224224Primary keys can make use of any singular simple Cassandra type or mapped user-defined Type.
225225Collection-typed primary keys are not supported.
226226
227+ [[cassandra-template.id-handling.simple]]
227228==== Simple Primary Keys
228229
229230A simple primary key consists of one partition key field within an entity class.
@@ -264,6 +265,7 @@ public class LoginEvent {
264265----
265266====
266267
268+ [[cassandra-template.id-handling.composite]]
267269==== Composite Keys
268270
269271Composite primary keys (or compound keys) consist of more than one primary key field.
@@ -293,6 +295,7 @@ CREATE TABLE login_event(
293295----
294296====
295297
298+ [[cassandra-template.id-handling.flat]]
296299==== Flat Composite Primary Keys
297300
298301Flat composite primary keys are embedded inside the entity as flat fields.
@@ -309,6 +312,7 @@ include::../{example-root}/LoginEvent.java[tags=class]
309312----
310313====
311314
315+ [[cassandra-template.id-handling.pk-class]]
312316==== Primary Key Class
313317
314318A primary key class is a composite primary key class that is mapped to multiple fields or properties of the entity.
0 commit comments