@@ -19,7 +19,7 @@ This section explains how types are mapped to and from an Apache Cassandra repre
19
19
Spring Data for Apache Cassandra supports several types that are provided by Apache Cassandra.
20
20
In addition to these types, Spring Data for Apache Cassandra provides a set of built-in converters to map additional types.
21
21
You 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.
23
23
The following table maps Spring Data types to Cassandra types:
24
24
25
25
[cols="3,2",options="header"]
@@ -224,6 +224,7 @@ In this context, "`composite primary key`" means one or more partition columns o
224
224
Primary keys can make use of any singular simple Cassandra type or mapped user-defined Type.
225
225
Collection-typed primary keys are not supported.
226
226
227
+ [[cassandra-template.id-handling.simple]]
227
228
==== Simple Primary Keys
228
229
229
230
A simple primary key consists of one partition key field within an entity class.
@@ -264,6 +265,7 @@ public class LoginEvent {
264
265
----
265
266
====
266
267
268
+ [[cassandra-template.id-handling.composite]]
267
269
==== Composite Keys
268
270
269
271
Composite primary keys (or compound keys) consist of more than one primary key field.
@@ -293,6 +295,7 @@ CREATE TABLE login_event(
293
295
----
294
296
====
295
297
298
+ [[cassandra-template.id-handling.flat]]
296
299
==== Flat Composite Primary Keys
297
300
298
301
Flat composite primary keys are embedded inside the entity as flat fields.
@@ -309,6 +312,7 @@ include::../{example-root}/LoginEvent.java[tags=class]
309
312
----
310
313
====
311
314
315
+ [[cassandra-template.id-handling.pk-class]]
312
316
==== Primary Key Class
313
317
314
318
A primary key class is a composite primary key class that is mapped to multiple fields or properties of the entity.
0 commit comments