Skip to content

Commit 9331ba1

Browse files
author
Ajay Kannan
committed
---
yaml --- r: 2499 b: refs/heads/update-datastore c: 424f144 h: refs/heads/master i: 2497: 86ca03d 2495: 88f21ea
1 parent c11a96c commit 9331ba1

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/gh-pages: 4e0561bb4504bf647db669a14417b2b2c87ba45d
55
refs/heads/bigquery: 762fa5830e6c398c0396177e3e7fd243bd62cfc3
66
refs/heads/pubsub-alpha: 1a0e970f265af871e02274085b9662b3fe29058b
77
refs/heads/resource-manager: ebf4adc5ee835cd2086c4ac5b4e78d01a5a005a7
8-
refs/heads/update-datastore: a07fbda2724b3faef46b43a251aea0ac9b42625a
8+
refs/heads/update-datastore: 424f14450271fc3ffbe8095d791acd33888a8cb5
99
refs/tags/0.0.9: 22f1839238f66c39e67ed4dfdcd273b1ae2e8444
1010
refs/tags/v0.0.10: 207ebd2a3472fddee69fe1298eb90429e3306efd
1111
refs/tags/v0.0.11: ffbfba48a6426ff63c08ff2117e58681f251fbf2

branches/update-datastore/gcloud-java-datastore/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Then add the following code to put an entity in Datastore.
9191
KeyFactory keyFactory = datastore.newKeyFactory().kind("Person");
9292
Key key = keyFactory.newKey("John Doe");
9393
Entity entity = Entity.builder(key)
94-
.set("age", 30)
94+
.set("age", 51)
9595
.set("favorite_food", "pizza")
9696
.build();
9797
datastore.put(entity);
@@ -100,7 +100,7 @@ datastore.put(entity);
100100
Later, if you want to get this entity back, add the following to your code:
101101

102102
```java
103-
Entity johnEntity = datastore.get("John Doe");
103+
Entity johnEntity = datastore.get(key);
104104
```
105105

106106
#### Running a query

0 commit comments

Comments
 (0)