Skip to content

Commit

Permalink
Merge pull request #188 from GoogleCloudPlatform/datastore
Browse files Browse the repository at this point in the history
Use key name in Datastore snippet.
  • Loading branch information
tswast committed Apr 25, 2016
2 parents a39ad62 + d9baf90 commit 73e9741
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 73e9741

Please sign in to comment.