Polishing.

Add since tags to extension methods and issue references to tests.
Update antora playbook to consider maintenance branches.

Original Pull Request: #4753
This commit is contained in:
Christoph Strobl
2024-09-12 10:39:48 +02:00
parent df08576b3a
commit 78fbea43b6
4 changed files with 53 additions and 29 deletions

View File

@@ -17,7 +17,7 @@ content:
- url: https://github.com/spring-projects/spring-data-commons
# Refname matching:
# https://docs.antora.org/antora/latest/playbook/content-refname-matching/
branches: [ main, 3.2.x ]
branches: [ main, 3.3.x, 3.2.x]
start_path: src/main/antora
asciidoc:
attributes:

View File

@@ -19,7 +19,7 @@ val characters : Flux<SWCharacter> = template.query().inTable("star-wars").all()
As in Java, `characters` in Kotlin is strongly typed, but Kotlin's clever type inference allows for shorter syntax.
[[mongo.query.kotlin-support]]
== Type-safe Queries and Updates for Kotlin
== Type-safe Queries for Kotlin
Kotlin embraces domain-specific language creation through its language syntax and its extension system.
Spring Data MongoDB ships with a Kotlin Extension for `Criteria` using https://kotlinlang.org/docs/reference/reflection.html#property-references[Kotlin property references] to build type-safe queries.
@@ -64,7 +64,11 @@ mongoOperations.find<Book>(
<3> To construct nested properties, use the `/` character (overloaded operator `div`).
====
Similar syntax can be used while updating a document:
[[mongo.update.kotlin-support]]
== Type-safe Updates for Kotlin
A syntax similar to <<mongo.query.kotlin-support>> can be used to update documents:
====
[source,kotlin]
----