Skip to content
This repository was archived by the owner on Dec 15, 2023. It is now read-only.

Commit fd6102a

Browse files
authored
Merge pull request #5 from Azure-Samples/moderakh/updating-sample-guide-to-latest
updating sample code
2 parents 87edc95 + 2ae5719 commit fd6102a

File tree

4 files changed

+184
-121
lines changed

4 files changed

+184
-121
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ git clone https://github.com/Azure-Samples/azure-cosmos-db-sql-api-async-java-ge
3232
```bash
3333
cd azure-cosmos-db-sql-api-async-java-getting-started
3434
cd azure-cosmosdb-get-started
35-
mvn package
35+
mvn clean package
3636
```
3737

3838
* From a command prompt or shell, run the following command to run the application.

Diff for: azure-cosmosdb-get-started/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<plugin>
2121
<groupId>org.codehaus.mojo</groupId>
2222
<artifactId>exec-maven-plugin</artifactId>
23-
<version>1.2.1</version>
23+
<version>1.6.0</version>
2424
<configuration>
2525
<mainClass>com.microsoft.azure.cosmosdb.sample.Main</mainClass>
2626
</configuration>
@@ -43,7 +43,7 @@
4343
<dependency>
4444
<groupId>com.microsoft.azure</groupId>
4545
<artifactId>azure-cosmosdb</artifactId>
46-
<version>1.0.0</version>
46+
<version>2.2.0</version>
4747
</dependency>
4848
<dependency>
4949
<groupId>org.slf4j</groupId>

Diff for: azure-cosmosdb-get-started/src/main/java/com/microsoft/azure/cosmosdb/sample/Families.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public class Families {
2626

2727
public static Family getAndersenFamilyDocument() {
2828
Family andersenFamily = new Family();
29-
andersenFamily.setId("Andersen" + System.currentTimeMillis());
29+
andersenFamily.setId("Andersen-" + System.currentTimeMillis());
3030
andersenFamily.setLastName("Andersen");
3131

3232
Parent parent1 = new Parent();
@@ -61,7 +61,7 @@ public static Family getAndersenFamilyDocument() {
6161

6262
public static Family getWakefieldFamilyDocument() {
6363
Family wakefieldFamily = new Family();
64-
wakefieldFamily.setId("Wakefield" + System.currentTimeMillis());
64+
wakefieldFamily.setId("Wakefield-" + System.currentTimeMillis());
6565
wakefieldFamily.setLastName("Wakefield");
6666

6767
Parent parent1 = new Parent();
@@ -108,7 +108,7 @@ public static Family getWakefieldFamilyDocument() {
108108

109109
public static Family getJohnsonFamilyDocument() {
110110
Family andersenFamily = new Family();
111-
andersenFamily.setId("Johnson" + System.currentTimeMillis());
111+
andersenFamily.setId("Johnson-" + System.currentTimeMillis());
112112
andersenFamily.setLastName("Johnson");
113113

114114
Parent parent1 = new Parent();
@@ -122,7 +122,7 @@ public static Family getJohnsonFamilyDocument() {
122122

123123
public static Family getSmithFamilyDocument() {
124124
Family andersenFamily = new Family();
125-
andersenFamily.setId("Smith" + System.currentTimeMillis());
125+
andersenFamily.setId("Smith-" + System.currentTimeMillis());
126126
andersenFamily.setLastName("Smith");
127127

128128
Parent parent1 = new Parent();

0 commit comments

Comments
 (0)