Skip to content

Commit 6c5b196

Browse files
committed
Update docs metadata
1 parent 615b80a commit 6c5b196

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

docs-ref-services/latest/spring-data-cosmos-readme.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ title: Azure Spring Data Cosmos client library for Java
33
keywords: Azure, java, SDK, API, azure-spring-data-cosmos, cosmos
44
author: kushagraThapar
55
ms.author: kuthapar
6-
ms.date: 04/12/2022
6+
ms.date: 04/25/2022
77
ms.topic: reference
88
ms.prod: azure
99
ms.technology: azure
1010
ms.devlang: java
1111
ms.service: cosmos
1212
---
13-
# Azure Spring Data Cosmos client library for Java - Version 3.19.1
13+
# Azure Spring Data Cosmos client library for Java - Version 3.20.0
1414

1515

1616
**Azure Spring Data Cosmos** provides Spring Data support for Azure Cosmos DB using the [SQL API][sql_api_query], based on Spring Data framework.
@@ -81,7 +81,7 @@ If you are using Maven, add the following dependency.
8181
<dependency>
8282
<groupId>com.azure</groupId>
8383
<artifactId>azure-spring-data-cosmos</artifactId>
84-
<version>3.19.1</version>
84+
<version>3.20.0</version>
8585
</dependency>
8686
```
8787
[//]: # ({x-version-update-end})
@@ -497,6 +497,8 @@ public class MyItem {
497497
String _etag;
498498
}
499499
```
500+
- Read more about Optimistic Locking [here](https://docs.microsoft.com/azure/cosmos-db/sql/database-transactions-optimistic-concurrency#optimistic-concurrency-control)
501+
500502
### Spring Data custom query, pageable and sorting
501503
- Azure-spring-data-cosmos supports [spring data custom queries][spring_data_custom_query]
502504
- Example, find operation, e.g., `findByAFieldAndBField`
@@ -592,7 +594,7 @@ azure.cosmos.secondary.database=your-secondary-cosmosDb-dbName
592594
azure.cosmos.secondary.populateQueryMetrics=if-populate-query-metrics
593595
```
594596

595-
- The [Entity](https://github.com/Azure/azure-sdk-for-java/tree/azure-spring-data-cosmos_3.19.1/sdk/cosmos/azure-spring-data-cosmos#define-an-entity) and [Repository](https://github.com/Azure/azure-sdk-for-java/tree/azure-spring-data-cosmos_3.19.1/sdk/cosmos/azure-spring-data-cosmos#create-repositories) definition is similar as above. You can put different database entities into different packages.
597+
- The [Entity](https://github.com/Azure/azure-sdk-for-java/tree/azure-spring-data-cosmos_3.20.0/sdk/cosmos/azure-spring-data-cosmos#define-an-entity) and [Repository](https://github.com/Azure/azure-sdk-for-java/tree/azure-spring-data-cosmos_3.20.0/sdk/cosmos/azure-spring-data-cosmos#create-repositories) definition is similar as above. You can put different database entities into different packages.
596598

597599
- The `@EnableReactiveCosmosRepositories` or `@EnableCosmosRepositories` support user-define the cosmos template, use `reactiveCosmosTemplateRef` or `cosmosTemplateRef` to config the name of the `ReactiveCosmosTemplate` or `CosmosTemplate` bean to be used with the repositories detected.
598600
- If you have multiple cosmos database accounts, you can define multiple `CosmosAsyncClient`. If the single cosmos account has multiple databases, you can use the same `CosmosAsyncClient` to initialize the cosmos template.
@@ -777,7 +779,7 @@ azure.cosmos.database=your-cosmosDb-dbName
777779
azure.cosmos.populate-query-metrics=if-populate-query-metrics
778780
```
779781

780-
- The [Entity](https://github.com/Azure/azure-sdk-for-java/tree/azure-spring-data-cosmos_3.19.1/sdk/cosmos/azure-spring-data-cosmos#define-an-entity) and [Repository](https://github.com/Azure/azure-sdk-for-java/tree/azure-spring-data-cosmos_3.19.1/sdk/cosmos/azure-spring-data-cosmos#create-repositories) definition is similar as above. You can put different database entities into different packages.
782+
- The [Entity](https://github.com/Azure/azure-sdk-for-java/tree/azure-spring-data-cosmos_3.20.0/sdk/cosmos/azure-spring-data-cosmos#define-an-entity) and [Repository](https://github.com/Azure/azure-sdk-for-java/tree/azure-spring-data-cosmos_3.20.0/sdk/cosmos/azure-spring-data-cosmos#create-repositories) definition is similar as above. You can put different database entities into different packages.
781783
- You can use `EnableReactiveCosmosRepositories` with different `reactiveCosmosTemplateRef` to define multiple databases in single cosmos account.
782784

783785
```java
@@ -888,7 +890,7 @@ public class MultiDatabaseApplication implements CommandLineRunner {
888890

889891
## Beta version package
890892

891-
Beta version built from `master` branch are available, you can refer to the [instruction](https://github.com/Azure/azure-sdk-for-java/blob/azure-spring-data-cosmos_3.19.1/CONTRIBUTING.md#nightly-package-builds) to use beta version packages.
893+
Beta version built from `master` branch are available, you can refer to the [instruction](https://github.com/Azure/azure-sdk-for-java/blob/azure-spring-data-cosmos_3.20.0/CONTRIBUTING.md#nightly-package-builds) to use beta version packages.
892894

893895
## Troubleshooting
894896

@@ -959,15 +961,15 @@ or contact [[email protected]][coc_contact] with any additional questions o
959961
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
960962
[coc_contact]: mailto:[email protected]
961963
[azure_subscription]: https://azure.microsoft.com/free/
962-
[samples]: https://github.com/Azure/azure-sdk-for-java/tree/azure-spring-data-cosmos_3.19.1/sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos
964+
[samples]: https://github.com/Azure/azure-sdk-for-java/tree/azure-spring-data-cosmos_3.20.0/sdk/cosmos/azure-spring-data-cosmos/src/samples/java/com/azure/spring/data/cosmos
963965
[sample-for-multi-database]: https://github.com/Azure-Samples/azure-spring-boot-samples/tree/tag_azure-spring-boot_3.6.0/cosmos/azure-spring-boot-sample-cosmos-multi-database-multi-account
964966
[sample-for-multi-database-single-account]: https://github.com/Azure-Samples/azure-spring-boot-samples/tree/tag_azure-spring-boot_3.6.0/cosmos/azure-spring-boot-sample-cosmos-multi-database-single-account
965967
[sql_api_query]: https://docs.microsoft.com/azure/cosmos-db/sql-api-sql-query
966968
[local_emulator]: https://docs.microsoft.com/azure/cosmos-db/local-emulator
967969
[local_emulator_export_ssl_certificates]: https://docs.microsoft.com/azure/cosmos-db/local-emulator-export-ssl-certificates
968970
[spring_data_commons_id_annotation]: https://github.com/spring-projects/spring-data-commons/blob/master/src/main/java/org/springframework/data/annotation/Id.java
969971
[azure_cosmos_db_partition]: https://docs.microsoft.com/azure/cosmos-db/partition-data
970-
[address_repository_it_test]: https://github.com/Azure/azure-sdk-for-java/blob/azure-spring-data-cosmos_3.19.1/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/AddressRepositoryIT.java
972+
[address_repository_it_test]: https://github.com/Azure/azure-sdk-for-java/blob/azure-spring-data-cosmos_3.20.0/sdk/cosmos/azure-spring-data-cosmos-test/src/test/java/com/azure/spring/data/cosmos/repository/integration/AddressRepositoryIT.java
971973
[azure_spring_data_cosmos_docs]: https://docs.microsoft.com/azure/cosmos-db/sql-api-sdk-java-spring-v3
972974
[spring_data_custom_query]: https://docs.spring.io/spring-data/commons/docs/current/reference/html/#repositories.query-methods.details
973975
[sql_queries_in_cosmos]: https://docs.microsoft.com/azure/cosmos-db/tutorial-query-sql-api
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"Name": "azure-spring-data-cosmos",
3-
"Version": "3.19.1",
3+
"Version": "3.20.0",
44
"DevVersion": null,
55
"DirectoryPath": "sdk/cosmos/azure-spring-data-cosmos",
66
"ServiceDirectory": "cosmos",
@@ -10,5 +10,5 @@
1010
"SdkType": "spring",
1111
"IsNewSdk": true,
1212
"ArtifactName": "azure-spring-data-cosmos",
13-
"ReleaseStatus": "2022-04-08"
13+
"ReleaseStatus": "2022-04-22"
1414
}

0 commit comments

Comments
 (0)