Skip to content

Commit d9baf90

Browse files
committed
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.
1 parent 02dbdfc commit d9baf90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

appengine/datastore/src/test/java/com/example/appengine/EntitiesTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public void kindExample_writesEntity() throws Exception {
7272
// [START kind_example]
7373
DatastoreService datastore = DatastoreServiceFactory.getDatastoreService();
7474

75-
Entity employee = new Entity("Employee");
75+
Entity employee = new Entity("Employee", "asalieri");
7676
employee.setProperty("firstName", "Antonio");
7777
employee.setProperty("lastName", "Salieri");
7878
employee.setProperty("hireDate", new Date());

0 commit comments

Comments
 (0)