{"action":"created","comment":{"url":"https://api.github.com/repos/SpineEventEngine/gae-java/pulls/comments/60926813","id":60926813,"diff_hunk":"@@ -154,38 +153,33 @@ protected LookupResponse lookup(LookupRequest request) {\n     }\n \n     /**\n-     * Makes a property from the given timestamp using {@link org.spine3.protobuf.Timestamps#convertToDate(TimestampOrBuilder)}.\n-     */\n-    protected static Property.Builder makeTimestampProperty(TimestampOrBuilder timestamp) {\n-        final Date date = convertToDate(timestamp);\n-        return makeProperty(TIMESTAMP_PROPERTY_NAME, makeValue(date));\n-    }\n-\n-    /**\n-     * Builds a query with the given {@code Entity} kind and the {@code Timestamp} sort direction.\n+     * Runs the given {@link Query} and returns {@link QueryResultBatch} to provide user with cursor.\n      *\n-     * @param sortDirection the {@code Timestamp} sort direction\n-     * @param entityKind    the {@code Entity} kind\n-     * @return a new {@code Query} instance.\n-     * @see Entity\n-     * @see com.google.protobuf.Timestamp\n-     * @see Query\n+     * @param query the query to run.\n+     * @return query result batch.\n      */\n-    protected static Query.Builder makeQuery(Direction sortDirection, String entityKind) {\n-        final Query.Builder query = Query.newBuilder();\n-        query.addKindBuilder().setName(entityKind);\n-        query.addOrder(makeOrder(TIMESTAMP_PROPERTY_NAME, sortDirection));\n-        return query;\n+    @Nullable\n+    /* package */ QueryResultBatch runQueryForBatch(Query query) {\n+        final RunQueryRequest queryRequest = RunQueryRequest.newBuilder().setQuery(query).build();\n+        QueryResultBatch batch = null;\n+        try {\n+            batch = datastore.runQuery(queryRequest).getBatch();\n+        } catch (DatastoreException e) {\n+            propagate(e);\n+        }\n+\n+        return batch;\n     }\n \n     /**\n      * Converts the given {@link Message} to the {@link Entity.Builder}.\n      *\n      * @param message the message to convert\n-     * @param key the entity key to set\n+     * @param key     the entity key to set\n      * @return the {@link Entity.Builder} with the given key and property created from the serialized message\n      */\n-    protected static Entity.Builder messageToEntity(Message message, Key.Builder key) {\n+    /* package */","path":"gcd/src/main/java/org/spine3/server/storage/datastore/DatastoreWrapper.java","position":null,"original_position":172,"commit_id":"57a3006132e9f40ba52b4d1f1275b55017b6a397","original_commit_id":"05fbdf57fba4ea3393e5902775877223bf53bee3","user":{"login":"mikhailmikhaylov","id":8265843,"avatar_url":"https://avatars.githubusercontent.com/u/8265843?v=3","gravatar_id":"","url":"https://api.github.com/users/mikhailmikhaylov","html_url":"https://github.com/mikhailmikhaylov","followers_url":"https://api.github.com/users/mikhailmikhaylov/followers","following_url":"https://api.github.com/users/mikhailmikhaylov/following{/other_user}","gists_url":"https://api.github.com/users/mikhailmikhaylov/gists{/gist_id}","starred_url":"https://api.github.com/users/mikhailmikhaylov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikhailmikhaylov/subscriptions","organizations_url":"https://api.github.com/users/mikhailmikhaylov/orgs","repos_url":"https://api.github.com/users/mikhailmikhaylov/repos","events_url":"https://api.github.com/users/mikhailmikhaylov/events{/privacy}","received_events_url":"https://api.github.com/users/mikhailmikhaylov/received_events","type":"User","site_admin":false},"body":"Fixed","created_at":"2016-04-25T14:55:03Z","updated_at":"2016-04-25T14:55:03Z","html_url":"https://github.com/SpineEventEngine/gae-java/pull/3#discussion_r60926813","pull_request_url":"https://api.github.com/repos/SpineEventEngine/gae-java/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/SpineEventEngine/gae-java/pulls/comments/60926813"},"html":{"href":"https://github.com/SpineEventEngine/gae-java/pull/3#discussion_r60926813"},"pull_request":{"href":"https://api.github.com/repos/SpineEventEngine/gae-java/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/SpineEventEngine/gae-java/pulls/3","id":67707991,"html_url":"https://github.com/SpineEventEngine/gae-java/pull/3","diff_url":"https://github.com/SpineEventEngine/gae-java/pull/3.diff","patch_url":"https://github.com/SpineEventEngine/gae-java/pull/3.patch","issue_url":"https://api.github.com/repos/SpineEventEngine/gae-java/issues/3","number":3,"state":"open","locked":false,"title":"Upgrade datastore to support latest core-java.","user":{"login":"mikhailmikhaylov","id":8265843,"avatar_url":"https://avatars.githubusercontent.com/u/8265843?v=3","gravatar_id":"","url":"https://api.github.com/users/mikhailmikhaylov","html_url":"https://github.com/mikhailmikhaylov","followers_url":"https://api.github.com/users/mikhailmikhaylov/followers","following_url":"https://api.github.com/users/mikhailmikhaylov/following{/other_user}","gists_url":"https://api.github.com/users/mikhailmikhaylov/gists{/gist_id}","starred_url":"https://api.github.com/users/mikhailmikhaylov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikhailmikhaylov/subscriptions","organizations_url":"https://api.github.com/users/mikhailmikhaylov/orgs","repos_url":"https://api.github.com/users/mikhailmikhaylov/repos","events_url":"https://api.github.com/users/mikhailmikhaylov/events{/privacy}","received_events_url":"https://api.github.com/users/mikhailmikhaylov/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-25T12:02:54Z","updated_at":"2016-04-25T14:55:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8227b3f0394d2d4bd7149c367989967ac163f48e","assignee":{"login":"AlexanderLitus","id":8298183,"avatar_url":"https://avatars.githubusercontent.com/u/8298183?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexanderLitus","html_url":"https://github.com/AlexanderLitus","followers_url":"https://api.github.com/users/AlexanderLitus/followers","following_url":"https://api.github.com/users/AlexanderLitus/following{/other_user}","gists_url":"https://api.github.com/users/AlexanderLitus/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexanderLitus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexanderLitus/subscriptions","organizations_url":"https://api.github.com/users/AlexanderLitus/orgs","repos_url":"https://api.github.com/users/AlexanderLitus/repos","events_url":"https://api.github.com/users/AlexanderLitus/events{/privacy}","received_events_url":"https://api.github.com/users/AlexanderLitus/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/SpineEventEngine/gae-java/pulls/3/commits","review_comments_url":"https://api.github.com/repos/SpineEventEngine/gae-java/pulls/3/comments","review_comment_url":"https://api.github.com/repos/SpineEventEngine/gae-java/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SpineEventEngine/gae-java/issues/3/comments","statuses_url":"https://api.github.com/repos/SpineEventEngine/gae-java/statuses/57a3006132e9f40ba52b4d1f1275b55017b6a397","head":{"label":"SpineEventEngine:upgrade","ref":"upgrade","sha":"57a3006132e9f40ba52b4d1f1275b55017b6a397","user":{"login":"SpineEventEngine","id":12821626,"avatar_url":"https://avatars.githubusercontent.com/u/12821626?v=3","gravatar_id":"","url":"https://api.github.com/users/SpineEventEngine","html_url":"https://github.com/SpineEventEngine","followers_url":"https://api.github.com/users/SpineEventEngine/followers","following_url":"https://api.github.com/users/SpineEventEngine/following{/other_user}","gists_url":"https://api.github.com/users/SpineEventEngine/gists{/gist_id}","starred_url":"https://api.github.com/users/SpineEventEngine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpineEventEngine/subscriptions","organizations_url":"https://api.github.com/users/SpineEventEngine/orgs","repos_url":"https://api.github.com/users/SpineEventEngine/repos","events_url":"https://api.github.com/users/SpineEventEngine/events{/privacy}","received_events_url":"https://api.github.com/users/SpineEventEngine/received_events","type":"Organization","site_admin":false},"repo":{"id":46358716,"name":"gae-java","full_name":"SpineEventEngine/gae-java","owner":{"login":"SpineEventEngine","id":12821626,"avatar_url":"https://avatars.githubusercontent.com/u/12821626?v=3","gravatar_id":"","url":"https://api.github.com/users/SpineEventEngine","html_url":"https://github.com/SpineEventEngine","followers_url":"https://api.github.com/users/SpineEventEngine/followers","following_url":"https://api.github.com/users/SpineEventEngine/following{/other_user}","gists_url":"https://api.github.com/users/SpineEventEngine/gists{/gist_id}","starred_url":"https://api.github.com/users/SpineEventEngine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpineEventEngine/subscriptions","organizations_url":"https://api.github.com/users/SpineEventEngine/orgs","repos_url":"https://api.github.com/users/SpineEventEngine/repos","events_url":"https://api.github.com/users/SpineEventEngine/events{/privacy}","received_events_url":"https://api.github.com/users/SpineEventEngine/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SpineEventEngine/gae-java","description":"Support for Spine-based Java apps running under Google App Engine","fork":false,"url":"https://api.github.com/repos/SpineEventEngine/gae-java","forks_url":"https://api.github.com/repos/SpineEventEngine/gae-java/forks","keys_url":"https://api.github.com/repos/SpineEventEngine/gae-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SpineEventEngine/gae-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SpineEventEngine/gae-java/teams","hooks_url":"https://api.github.com/repos/SpineEventEngine/gae-java/hooks","issue_events_url":"https://api.github.com/repos/SpineEventEngine/gae-java/issues/events{/number}","events_url":"https://api.github.com/repos/SpineEventEngine/gae-java/events","assignees_url":"https://api.github.com/repos/SpineEventEngine/gae-java/assignees{/user}","branches_url":"https://api.github.com/repos/SpineEventEngine/gae-java/branches{/branch}","tags_url":"https://api.github.com/repos/SpineEventEngine/gae-java/tags","blobs_url":"https://api.github.com/repos/SpineEventEngine/gae-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SpineEventEngine/gae-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SpineEventEngine/gae-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/SpineEventEngine/gae-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SpineEventEngine/gae-java/statuses/{sha}","languages_url":"https://api.github.com/repos/SpineEventEngine/gae-java/languages","stargazers_url":"https://api.github.com/repos/SpineEventEngine/gae-java/stargazers","contributors_url":"https://api.github.com/repos/SpineEventEngine/gae-java/contributors","subscribers_url":"https://api.github.com/repos/SpineEventEngine/gae-java/subscribers","subscription_url":"https://api.github.com/repos/SpineEventEngine/gae-java/subscription","commits_url":"https://api.github.com/repos/SpineEventEngine/gae-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/SpineEventEngine/gae-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/SpineEventEngine/gae-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/SpineEventEngine/gae-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/SpineEventEngine/gae-java/contents/{+path}","compare_url":"https://api.github.com/repos/SpineEventEngine/gae-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SpineEventEngine/gae-java/merges","archive_url":"https://api.github.com/repos/SpineEventEngine/gae-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SpineEventEngine/gae-java/downloads","issues_url":"https://api.github.com/repos/SpineEventEngine/gae-java/issues{/number}","pulls_url":"https://api.github.com/repos/SpineEventEngine/gae-java/pulls{/number}","milestones_url":"https://api.github.com/repos/SpineEventEngine/gae-java/milestones{/number}","notifications_url":"https://api.github.com/repos/SpineEventEngine/gae-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SpineEventEngine/gae-java/labels{/name}","releases_url":"https://api.github.com/repos/SpineEventEngine/gae-java/releases{/id}","deployments_url":"https://api.github.com/repos/SpineEventEngine/gae-java/deployments","created_at":"2015-11-17T16:08:56Z","updated_at":"2015-11-20T10:17:36Z","pushed_at":"2016-04-25T14:54:45Z","git_url":"git://github.com/SpineEventEngine/gae-java.git","ssh_url":"git@github.com:SpineEventEngine/gae-java.git","clone_url":"https://github.com/SpineEventEngine/gae-java.git","svn_url":"https://github.com/SpineEventEngine/gae-java","homepage":null,"size":148,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"SpineEventEngine:master","ref":"master","sha":"cb7384a9f8c4b28864dd5cc0bb2b1faa9d7787d7","user":{"login":"SpineEventEngine","id":12821626,"avatar_url":"https://avatars.githubusercontent.com/u/12821626?v=3","gravatar_id":"","url":"https://api.github.com/users/SpineEventEngine","html_url":"https://github.com/SpineEventEngine","followers_url":"https://api.github.com/users/SpineEventEngine/followers","following_url":"https://api.github.com/users/SpineEventEngine/following{/other_user}","gists_url":"https://api.github.com/users/SpineEventEngine/gists{/gist_id}","starred_url":"https://api.github.com/users/SpineEventEngine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpineEventEngine/subscriptions","organizations_url":"https://api.github.com/users/SpineEventEngine/orgs","repos_url":"https://api.github.com/users/SpineEventEngine/repos","events_url":"https://api.github.com/users/SpineEventEngine/events{/privacy}","received_events_url":"https://api.github.com/users/SpineEventEngine/received_events","type":"Organization","site_admin":false},"repo":{"id":46358716,"name":"gae-java","full_name":"SpineEventEngine/gae-java","owner":{"login":"SpineEventEngine","id":12821626,"avatar_url":"https://avatars.githubusercontent.com/u/12821626?v=3","gravatar_id":"","url":"https://api.github.com/users/SpineEventEngine","html_url":"https://github.com/SpineEventEngine","followers_url":"https://api.github.com/users/SpineEventEngine/followers","following_url":"https://api.github.com/users/SpineEventEngine/following{/other_user}","gists_url":"https://api.github.com/users/SpineEventEngine/gists{/gist_id}","starred_url":"https://api.github.com/users/SpineEventEngine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpineEventEngine/subscriptions","organizations_url":"https://api.github.com/users/SpineEventEngine/orgs","repos_url":"https://api.github.com/users/SpineEventEngine/repos","events_url":"https://api.github.com/users/SpineEventEngine/events{/privacy}","received_events_url":"https://api.github.com/users/SpineEventEngine/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SpineEventEngine/gae-java","description":"Support for Spine-based Java apps running under Google App Engine","fork":false,"url":"https://api.github.com/repos/SpineEventEngine/gae-java","forks_url":"https://api.github.com/repos/SpineEventEngine/gae-java/forks","keys_url":"https://api.github.com/repos/SpineEventEngine/gae-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SpineEventEngine/gae-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SpineEventEngine/gae-java/teams","hooks_url":"https://api.github.com/repos/SpineEventEngine/gae-java/hooks","issue_events_url":"https://api.github.com/repos/SpineEventEngine/gae-java/issues/events{/number}","events_url":"https://api.github.com/repos/SpineEventEngine/gae-java/events","assignees_url":"https://api.github.com/repos/SpineEventEngine/gae-java/assignees{/user}","branches_url":"https://api.github.com/repos/SpineEventEngine/gae-java/branches{/branch}","tags_url":"https://api.github.com/repos/SpineEventEngine/gae-java/tags","blobs_url":"https://api.github.com/repos/SpineEventEngine/gae-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SpineEventEngine/gae-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SpineEventEngine/gae-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/SpineEventEngine/gae-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SpineEventEngine/gae-java/statuses/{sha}","languages_url":"https://api.github.com/repos/SpineEventEngine/gae-java/languages","stargazers_url":"https://api.github.com/repos/SpineEventEngine/gae-java/stargazers","contributors_url":"https://api.github.com/repos/SpineEventEngine/gae-java/contributors","subscribers_url":"https://api.github.com/repos/SpineEventEngine/gae-java/subscribers","subscription_url":"https://api.github.com/repos/SpineEventEngine/gae-java/subscription","commits_url":"https://api.github.com/repos/SpineEventEngine/gae-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/SpineEventEngine/gae-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/SpineEventEngine/gae-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/SpineEventEngine/gae-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/SpineEventEngine/gae-java/contents/{+path}","compare_url":"https://api.github.com/repos/SpineEventEngine/gae-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SpineEventEngine/gae-java/merges","archive_url":"https://api.github.com/repos/SpineEventEngine/gae-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SpineEventEngine/gae-java/downloads","issues_url":"https://api.github.com/repos/SpineEventEngine/gae-java/issues{/number}","pulls_url":"https://api.github.com/repos/SpineEventEngine/gae-java/pulls{/number}","milestones_url":"https://api.github.com/repos/SpineEventEngine/gae-java/milestones{/number}","notifications_url":"https://api.github.com/repos/SpineEventEngine/gae-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SpineEventEngine/gae-java/labels{/name}","releases_url":"https://api.github.com/repos/SpineEventEngine/gae-java/releases{/id}","deployments_url":"https://api.github.com/repos/SpineEventEngine/gae-java/deployments","created_at":"2015-11-17T16:08:56Z","updated_at":"2015-11-20T10:17:36Z","pushed_at":"2016-04-25T14:54:45Z","git_url":"git://github.com/SpineEventEngine/gae-java.git","ssh_url":"git@github.com:SpineEventEngine/gae-java.git","clone_url":"https://github.com/SpineEventEngine/gae-java.git","svn_url":"https://github.com/SpineEventEngine/gae-java","homepage":null,"size":148,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SpineEventEngine/gae-java/pulls/3"},"html":{"href":"https://github.com/SpineEventEngine/gae-java/pull/3"},"issue":{"href":"https://api.github.com/repos/SpineEventEngine/gae-java/issues/3"},"comments":{"href":"https://api.github.com/repos/SpineEventEngine/gae-java/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/SpineEventEngine/gae-java/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/SpineEventEngine/gae-java/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SpineEventEngine/gae-java/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/SpineEventEngine/gae-java/statuses/57a3006132e9f40ba52b4d1f1275b55017b6a397"}}}}