From 3656dad64db0be7353b99d45dab814fa1cce2553 Mon Sep 17 00:00:00 2001 From: BenWhitehead Date: Wed, 8 May 2019 16:40:01 -0400 Subject: [PATCH] docs(samples): Update datastore_basic_entity sample to include `taskKey` definition (#1350) --- .../test/java/com/google/datastore/snippets/ConceptsTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/datastore/src/test/java/com/google/datastore/snippets/ConceptsTest.java b/datastore/src/test/java/com/google/datastore/snippets/ConceptsTest.java index abb1ba5e860..ce6b59d8fd2 100644 --- a/datastore/src/test/java/com/google/datastore/snippets/ConceptsTest.java +++ b/datastore/src/test/java/com/google/datastore/snippets/ConceptsTest.java @@ -233,6 +233,9 @@ public void testArrayValue() { @Test public void testBasicEntity() { // [START datastore_basic_entity] + Key taskKey = datastore.newKeyFactory() + .setKind("Task") + .newKey("sampleTask"); Entity task = Entity.newBuilder(taskKey) .set("category", "Personal") .set("done", false)