DATACASS-493 - Update reference documentation for 2.0.
Update what's new and include migration guide.
This commit is contained in:
@@ -48,5 +48,6 @@ include::{spring-data-commons-docs}/repository-namespace-reference.adoc[]
|
||||
include::{spring-data-commons-docs}/repository-populator-namespace-reference.adoc[]
|
||||
include::{spring-data-commons-docs}/repository-query-keywords-reference.adoc[]
|
||||
include::{spring-data-commons-docs}/repository-query-return-types-reference.adoc[]
|
||||
include::reference/migration-guides.adoc[]
|
||||
|
||||
:leveloffset: -1
|
||||
|
||||
@@ -15,9 +15,13 @@ to `org.springframework.data.cassandra`.
|
||||
* Introduced `Update` and `Query` objects.
|
||||
* Renamed CRUD _Repository_ interface: `CassandraRepository` using `MapId` is now renamed to `MapIdCassandraRepository`.
|
||||
`TypedIdCassandraRepository` is renamed to `CassandraRepository`.
|
||||
* Added lightweight transaction support via `InsertOptions` and `UpdateOptions` using the Template API.
|
||||
* Added support for Index creation on application startup via `@Indexed` and `@SASI`.
|
||||
* <<cassandra.repositories.queries,Pagination>> via `PagingState` and `CassandraPageRequest`.
|
||||
* Interface and DTO projections in Repository query methods.
|
||||
* Lightweight transaction support via `InsertOptions` and `UpdateOptions` using the Template API.
|
||||
* <<cassandra.repositories.queries.options,Query options>> for Repository query methods.
|
||||
* Introduced new annotation for `@AllowFiltering`.
|
||||
* Index creation on application startup via `@Indexed` and `@SASI`.
|
||||
* Tooling support for null-safety via Spring's `@NonNullApi` and `@Nullable` annotations.
|
||||
|
||||
[[new-features.1-5-0]]
|
||||
== What's new in Spring Data for Apache Cassandra 1.5
|
||||
|
||||
@@ -187,7 +187,6 @@ public interface PersonRepository extends CrudRepository<Person, String> {
|
||||
Person findByShippingAddress(Address address); <5>
|
||||
|
||||
Stream<Person> findAllBy(); <6>
|
||||
>>>>>>> 18c314d... DATACASS-56 - Cassandra paging support.
|
||||
}
|
||||
----
|
||||
<1> The method shows a query for all people with the given `lastname`. The query will be derived from parsing
|
||||
@@ -267,6 +266,7 @@ NOTE: Querying non-primary key properties requires secondary indexes.
|
||||
|
||||
include::../{spring-data-commons-docs}/repository-projections.adoc[leveloffset=+2]
|
||||
|
||||
[[cassandra.repositories.queries.options]]
|
||||
=== Query options
|
||||
|
||||
You can specify query options for query methods by passing a `QueryOptions` object
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[[cassandra.migration.1.x-to-2.x]]
|
||||
= Migration guide from Spring Data Cassandra 1.x to 2.x
|
||||
= Migration Guide from Spring Data Cassandra 1.x to 2.x
|
||||
|
||||
Spring Data for Apache Cassandra 2.0 introduces a set of breaking changes when upgrading from earlier versions:
|
||||
|
||||
|
||||
5
src/main/asciidoc/reference/migration-guides.adoc
Normal file
5
src/main/asciidoc/reference/migration-guides.adoc
Normal file
@@ -0,0 +1,5 @@
|
||||
= Appendix E: Migration Guides
|
||||
|
||||
:leveloffset: +1
|
||||
include::migration-guide-1.5-to-2.0.adoc[]
|
||||
:leveloffset: -1
|
||||
Reference in New Issue
Block a user