We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a07fbda commit 424f144Copy full SHA for 424f144
gcloud-java-datastore/README.md
@@ -91,7 +91,7 @@ Then add the following code to put an entity in Datastore.
91
KeyFactory keyFactory = datastore.newKeyFactory().kind("Person");
92
Key key = keyFactory.newKey("John Doe");
93
Entity entity = Entity.builder(key)
94
- .set("age", 30)
+ .set("age", 51)
95
.set("favorite_food", "pizza")
96
.build();
97
datastore.put(entity);
@@ -100,7 +100,7 @@ datastore.put(entity);
100
Later, if you want to get this entity back, add the following to your code:
101
102
```java
103
-Entity johnEntity = datastore.get("John Doe");
+Entity johnEntity = datastore.get(key);
104
```
105
106
#### Running a query
0 commit comments