From 511ae51208cc8a0bf20e1eb1280b8a93e277f415 Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Wed, 31 Jan 2018 14:52:25 +0100 Subject: [PATCH] DATACASS-284 - Documentation. --- src/main/asciidoc/index.adoc | 2 +- src/main/asciidoc/new-features.adoc | 1 + src/main/asciidoc/reference/cassandra.adoc | 2 +- src/main/asciidoc/reference/mapping.adoc | 3 +++ 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/asciidoc/index.adoc b/src/main/asciidoc/index.adoc index 3871ae7cf..71dd88299 100644 --- a/src/main/asciidoc/index.adoc +++ b/src/main/asciidoc/index.adoc @@ -7,7 +7,7 @@ David Webb, Matthew Adams, John Blum, Mark Paluch :spring-data-commons-docs: ../../../../spring-data-commons/src/main/asciidoc :spring-framework-docs: http://docs.spring.io/spring/docs/{springVersion}/spring-framework-reference/ -(C) 2008-2017 The original author(s). +(C) 2008-2018 The original author(s). NOTE: Copies of this document may be made for your own use and for distribution to others, provided that you do not charge any fee for such copies and further provided that each copy contains this Copyright Notice, whether distributed diff --git a/src/main/asciidoc/new-features.adoc b/src/main/asciidoc/new-features.adoc index 565166480..ae457b8ba 100644 --- a/src/main/asciidoc/new-features.adoc +++ b/src/main/asciidoc/new-features.adoc @@ -8,6 +8,7 @@ This chapter summarizes changes and new features for each release. * New annotations for `@CountQuery` and `@ExistsQuery`. * Template API extended with `count(…)` and `exists(…)` methods accepting `Query`. * <> for CRUD operations. +* Cassandra Tuple support via `TupleValue`. [[new-features.2-0-0]] == What's new in Spring Data for Apache Cassandra 2.0 diff --git a/src/main/asciidoc/reference/cassandra.adoc b/src/main/asciidoc/reference/cassandra.adoc index 1d62d0bfd..00d3aef52 100644 --- a/src/main/asciidoc/reference/cassandra.adoc +++ b/src/main/asciidoc/reference/cassandra.adoc @@ -613,7 +613,7 @@ NOTE: `SchemaAction.RECREATE`/`SchemaAction.RECREATE_DROP_UNUSED` will drop your ==== Enabling Tables and User-Defined Types for Schema Management -<> explains object mapping using conventions and annotations. Schema management is only active for entities annotated with `@Table` and user-defined types annotated with `@UserDefinedType` to prevent unwanted classes from being created as table/type. Entities are discovered by scanning the class path. Entity scanning requires one or more base packages. +<> explains object mapping using conventions and annotations. Schema management is only active for entities annotated with `@Table` and user-defined types annotated with `@UserDefinedType` to prevent unwanted classes from being created as table/type. Entities are discovered by scanning the class path. Entity scanning requires one or more base packages. Tuple typed columns using `TupleValue` do not provide any typing details hences you must annotate such column properties with `@CassandraType(type = TUPLE, typeArguments = …)` to specify the desired column type. .Specifying Entity Base Packages via XML ==== diff --git a/src/main/asciidoc/reference/mapping.adoc b/src/main/asciidoc/reference/mapping.adoc index 93fb6df7e..bf0292d3d 100644 --- a/src/main/asciidoc/reference/mapping.adoc +++ b/src/main/asciidoc/reference/mapping.adoc @@ -73,6 +73,9 @@ for further details. | `java.util.UUID` | `timeuuid` +| `TupleValue` +| `tuple<…>` + | `UDTValue`, mapped User-Defined Types | user type