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

Commit

Permalink
Merge pull request #5 from Azure-Samples/moderakh/updating-sample-gui…
Browse files Browse the repository at this point in the history
…de-to-latest

updating sample code
  • Loading branch information
moderakh authored Oct 27, 2018
2 parents 87edc95 + 2ae5719 commit fd6102a
Show file tree
Hide file tree
Showing 4 changed files with 184 additions and 121 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ git clone https://github.com/Azure-Samples/azure-cosmos-db-sql-api-async-java-ge
```bash
cd azure-cosmos-db-sql-api-async-java-getting-started
cd azure-cosmosdb-get-started
mvn package
mvn clean package
```

* From a command prompt or shell, run the following command to run the application.
Expand Down
4 changes: 2 additions & 2 deletions azure-cosmosdb-get-started/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<version>1.6.0</version>
<configuration>
<mainClass>com.microsoft.azure.cosmosdb.sample.Main</mainClass>
</configuration>
Expand All @@ -43,7 +43,7 @@
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-cosmosdb</artifactId>
<version>1.0.0</version>
<version>2.2.0</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class Families {

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

Parent parent1 = new Parent();
Expand Down Expand Up @@ -61,7 +61,7 @@ public static Family getAndersenFamilyDocument() {

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

Parent parent1 = new Parent();
Expand Down Expand Up @@ -108,7 +108,7 @@ public static Family getWakefieldFamilyDocument() {

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

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

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

Parent parent1 = new Parent();
Expand Down
Loading

0 comments on commit fd6102a

Please sign in to comment.