From d9baf90420658ba79a8b32f678a0c78450654b09 Mon Sep 17 00:00:00 2001 From: Tim Swast Date: Mon, 25 Apr 2016 16:02:28 -0700 Subject: [PATCH] Use key name in Datastore snippet. Writers are using this snippet in a slightly different way, so it needs to include the key name instead of using the auto ID. --- .../src/test/java/com/example/appengine/EntitiesTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appengine/datastore/src/test/java/com/example/appengine/EntitiesTest.java b/appengine/datastore/src/test/java/com/example/appengine/EntitiesTest.java index b7209e4b0f3..769b229491e 100644 --- a/appengine/datastore/src/test/java/com/example/appengine/EntitiesTest.java +++ b/appengine/datastore/src/test/java/com/example/appengine/EntitiesTest.java @@ -72,7 +72,7 @@ public void kindExample_writesEntity() throws Exception { // [START kind_example] DatastoreService datastore = DatastoreServiceFactory.getDatastoreService(); - Entity employee = new Entity("Employee"); + Entity employee = new Entity("Employee", "asalieri"); employee.setProperty("firstName", "Antonio"); employee.setProperty("lastName", "Salieri"); employee.setProperty("hireDate", new Date());