{"action":"created","comment":{"url":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/pulls/comments/29744073","id":29744073,"diff_hunk":"@@ -141,6 +141,13 @@ public long getNumberOfPushMessagesForApplications() {\n                 \"IN (select p.pushApplicationID from PushApplication p)\", Long.class).getSingleResult();\n     }\n \n+    @Override\n+    public PushMessageInformation getPushMessageInformation(String id) {\n+        return getSingleResultForQuery(createQuery(\n+                \"select pmi from PushMessageInformation pmi where pmi.id = :id\")\n+                .setParameter(\"id\", id));\n+","path":"model/jpa/src/main/java/org/jboss/aerogear/unifiedpush/jpa/dao/impl/JPAPushMessageInformationDao.java","position":9,"original_position":9,"commit_id":"8ed980e73ba457e6483c6b9590094cb7a4768759","original_commit_id":"8ed980e73ba457e6483c6b9590094cb7a4768759","user":{"login":"matzew","id":157646,"avatar_url":"https://avatars.githubusercontent.com/u/157646?v=3","gravatar_id":"","url":"https://api.github.com/users/matzew","html_url":"https://github.com/matzew","followers_url":"https://api.github.com/users/matzew/followers","following_url":"https://api.github.com/users/matzew/following{/other_user}","gists_url":"https://api.github.com/users/matzew/gists{/gist_id}","starred_url":"https://api.github.com/users/matzew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matzew/subscriptions","organizations_url":"https://api.github.com/users/matzew/orgs","repos_url":"https://api.github.com/users/matzew/repos","events_url":"https://api.github.com/users/matzew/events{/privacy}","received_events_url":"https://api.github.com/users/matzew/received_events","type":"User","site_admin":false},"body":"@sebastienblanc if that is the PK, why not using `em.find(PushMessageInformation.class, id);` ? ","created_at":"2015-05-06T09:15:43Z","updated_at":"2015-05-06T09:15:43Z","html_url":"https://github.com/aerogear/aerogear-unifiedpush-server/pull/543#discussion_r29744073","pull_request_url":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/pulls/543","_links":{"self":{"href":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/pulls/comments/29744073"},"html":{"href":"https://github.com/aerogear/aerogear-unifiedpush-server/pull/543#discussion_r29744073"},"pull_request":{"href":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/pulls/543"}}},"pull_request":{"url":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/pulls/543","id":34717053,"html_url":"https://github.com/aerogear/aerogear-unifiedpush-server/pull/543","diff_url":"https://github.com/aerogear/aerogear-unifiedpush-server/pull/543.diff","patch_url":"https://github.com/aerogear/aerogear-unifiedpush-server/pull/543.patch","issue_url":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/issues/543","number":543,"state":"open","locked":false,"title":"Analytics","user":{"login":"matzew","id":157646,"avatar_url":"https://avatars.githubusercontent.com/u/157646?v=3","gravatar_id":"","url":"https://api.github.com/users/matzew","html_url":"https://github.com/matzew","followers_url":"https://api.github.com/users/matzew/followers","following_url":"https://api.github.com/users/matzew/following{/other_user}","gists_url":"https://api.github.com/users/matzew/gists{/gist_id}","starred_url":"https://api.github.com/users/matzew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matzew/subscriptions","organizations_url":"https://api.github.com/users/matzew/orgs","repos_url":"https://api.github.com/users/matzew/repos","events_url":"https://api.github.com/users/matzew/events{/privacy}","received_events_url":"https://api.github.com/users/matzew/received_events","type":"User","site_admin":false},"body":"updated version of https://github.com/aerogear/aerogear-unifiedpush-server/pull/540","created_at":"2015-05-05T11:55:41Z","updated_at":"2015-05-06T09:15:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e827a999e970c47b923d54892a25c3ac09cf0760","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/pulls/543/commits","review_comments_url":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/pulls/543/comments","review_comment_url":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/issues/543/comments","statuses_url":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/statuses/8ed980e73ba457e6483c6b9590094cb7a4768759","head":{"label":"matzew:analytics","ref":"analytics","sha":"8ed980e73ba457e6483c6b9590094cb7a4768759","user":{"login":"matzew","id":157646,"avatar_url":"https://avatars.githubusercontent.com/u/157646?v=3","gravatar_id":"","url":"https://api.github.com/users/matzew","html_url":"https://github.com/matzew","followers_url":"https://api.github.com/users/matzew/followers","following_url":"https://api.github.com/users/matzew/following{/other_user}","gists_url":"https://api.github.com/users/matzew/gists{/gist_id}","starred_url":"https://api.github.com/users/matzew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matzew/subscriptions","organizations_url":"https://api.github.com/users/matzew/orgs","repos_url":"https://api.github.com/users/matzew/repos","events_url":"https://api.github.com/users/matzew/events{/privacy}","received_events_url":"https://api.github.com/users/matzew/received_events","type":"User","site_admin":false},"repo":{"id":20186096,"name":"aerogear-unifiedpush-server","full_name":"matzew/aerogear-unifiedpush-server","owner":{"login":"matzew","id":157646,"avatar_url":"https://avatars.githubusercontent.com/u/157646?v=3","gravatar_id":"","url":"https://api.github.com/users/matzew","html_url":"https://github.com/matzew","followers_url":"https://api.github.com/users/matzew/followers","following_url":"https://api.github.com/users/matzew/following{/other_user}","gists_url":"https://api.github.com/users/matzew/gists{/gist_id}","starred_url":"https://api.github.com/users/matzew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matzew/subscriptions","organizations_url":"https://api.github.com/users/matzew/orgs","repos_url":"https://api.github.com/users/matzew/repos","events_url":"https://api.github.com/users/matzew/events{/privacy}","received_events_url":"https://api.github.com/users/matzew/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/matzew/aerogear-unifiedpush-server","description":"AeroGear UnifiedPush Server","fork":true,"url":"https://api.github.com/repos/matzew/aerogear-unifiedpush-server","forks_url":"https://api.github.com/repos/matzew/aerogear-unifiedpush-server/forks","keys_url":"https://api.github.com/repos/matzew/aerogear-unifiedpush-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matzew/aerogear-unifiedpush-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matzew/aerogear-unifiedpush-server/teams","hooks_url":"https://api.github.com/repos/matzew/aerogear-unifiedpush-server/hooks","issue_events_url":"https://api.github.com/repos/matzew/aerogear-unifiedpush-server/issues/events{/number}","events_url":"https://api.github.com/repos/matzew/aerogear-unifiedpush-server/events","assignees_url":"https://api.github.com/repos/matzew/aerogear-unifiedpush-server/assignees{/user}","branches_url":"https://api.github.com/repos/matzew/aerogear-unifiedpush-server/branches{/branch}","tags_url":"https://api.github.com/repos/matzew/aerogear-unifiedpush-server/tags","blobs_url":"https://api.github.com/repos/matzew/aerogear-unifiedpush-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matzew/aerogear-unifiedpush-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matzew/aerogear-unifiedpush-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/matzew/aerogear-unifiedpush-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matzew/aerogear-unifiedpush-server/statuses/{sha}","languages_url":"https://api.github.com/repos/matzew/aerogear-unifiedpush-server/languages","stargazers_url":"https://api.github.com/repos/matzew/aerogear-unifiedpush-server/stargazers","contributors_url":"https://api.github.com/repos/matzew/aerogear-unifiedpush-server/contributors","subscribers_url":"https://api.github.com/repos/matzew/aerogear-unifiedpush-server/subscribers","subscription_url":"https://api.github.com/repos/matzew/aerogear-unifiedpush-server/subscription","commits_url":"https://api.github.com/repos/matzew/aerogear-unifiedpush-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/matzew/aerogear-unifiedpush-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/matzew/aerogear-unifiedpush-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/matzew/aerogear-unifiedpush-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/matzew/aerogear-unifiedpush-server/contents/{+path}","compare_url":"https://api.github.com/repos/matzew/aerogear-unifiedpush-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matzew/aerogear-unifiedpush-server/merges","archive_url":"https://api.github.com/repos/matzew/aerogear-unifiedpush-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matzew/aerogear-unifiedpush-server/downloads","issues_url":"https://api.github.com/repos/matzew/aerogear-unifiedpush-server/issues{/number}","pulls_url":"https://api.github.com/repos/matzew/aerogear-unifiedpush-server/pulls{/number}","milestones_url":"https://api.github.com/repos/matzew/aerogear-unifiedpush-server/milestones{/number}","notifications_url":"https://api.github.com/repos/matzew/aerogear-unifiedpush-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matzew/aerogear-unifiedpush-server/labels{/name}","releases_url":"https://api.github.com/repos/matzew/aerogear-unifiedpush-server/releases{/id}","created_at":"2014-05-26T12:57:14Z","updated_at":"2015-04-29T13:38:34Z","pushed_at":"2015-05-05T11:54:58Z","git_url":"git://github.com/matzew/aerogear-unifiedpush-server.git","ssh_url":"git@github.com:matzew/aerogear-unifiedpush-server.git","clone_url":"https://github.com/matzew/aerogear-unifiedpush-server.git","svn_url":"https://github.com/matzew/aerogear-unifiedpush-server","homepage":"aerogear.org","size":15834,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"aerogear:master","ref":"master","sha":"f8500eee14464bab7c87ccc44d21d49e31b5e8ec","user":{"login":"aerogear","id":954205,"avatar_url":"https://avatars.githubusercontent.com/u/954205?v=3","gravatar_id":"","url":"https://api.github.com/users/aerogear","html_url":"https://github.com/aerogear","followers_url":"https://api.github.com/users/aerogear/followers","following_url":"https://api.github.com/users/aerogear/following{/other_user}","gists_url":"https://api.github.com/users/aerogear/gists{/gist_id}","starred_url":"https://api.github.com/users/aerogear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aerogear/subscriptions","organizations_url":"https://api.github.com/users/aerogear/orgs","repos_url":"https://api.github.com/users/aerogear/repos","events_url":"https://api.github.com/users/aerogear/events{/privacy}","received_events_url":"https://api.github.com/users/aerogear/received_events","type":"Organization","site_admin":false},"repo":{"id":10624930,"name":"aerogear-unifiedpush-server","full_name":"aerogear/aerogear-unifiedpush-server","owner":{"login":"aerogear","id":954205,"avatar_url":"https://avatars.githubusercontent.com/u/954205?v=3","gravatar_id":"","url":"https://api.github.com/users/aerogear","html_url":"https://github.com/aerogear","followers_url":"https://api.github.com/users/aerogear/followers","following_url":"https://api.github.com/users/aerogear/following{/other_user}","gists_url":"https://api.github.com/users/aerogear/gists{/gist_id}","starred_url":"https://api.github.com/users/aerogear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aerogear/subscriptions","organizations_url":"https://api.github.com/users/aerogear/orgs","repos_url":"https://api.github.com/users/aerogear/repos","events_url":"https://api.github.com/users/aerogear/events{/privacy}","received_events_url":"https://api.github.com/users/aerogear/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aerogear/aerogear-unifiedpush-server","description":"AeroGear UnifiedPush Server","fork":false,"url":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server","forks_url":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/forks","keys_url":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/teams","hooks_url":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/hooks","issue_events_url":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/issues/events{/number}","events_url":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/events","assignees_url":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/assignees{/user}","branches_url":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/branches{/branch}","tags_url":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/tags","blobs_url":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/statuses/{sha}","languages_url":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/languages","stargazers_url":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/stargazers","contributors_url":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/contributors","subscribers_url":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/subscribers","subscription_url":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/subscription","commits_url":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/contents/{+path}","compare_url":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/merges","archive_url":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/downloads","issues_url":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/issues{/number}","pulls_url":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/pulls{/number}","milestones_url":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/milestones{/number}","notifications_url":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/labels{/name}","releases_url":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/releases{/id}","created_at":"2013-06-11T15:48:01Z","updated_at":"2015-05-05T09:47:40Z","pushed_at":"2015-05-05T11:55:42Z","git_url":"git://github.com/aerogear/aerogear-unifiedpush-server.git","ssh_url":"git@github.com:aerogear/aerogear-unifiedpush-server.git","clone_url":"https://github.com/aerogear/aerogear-unifiedpush-server.git","svn_url":"https://github.com/aerogear/aerogear-unifiedpush-server","homepage":"aerogear.org","size":24295,"stargazers_count":152,"watchers_count":152,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":86,"mirror_url":null,"open_issues_count":4,"forks":86,"open_issues":4,"watchers":152,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/pulls/543"},"html":{"href":"https://github.com/aerogear/aerogear-unifiedpush-server/pull/543"},"issue":{"href":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/issues/543"},"comments":{"href":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/issues/543/comments"},"review_comments":{"href":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/pulls/543/comments"},"review_comment":{"href":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/pulls/543/commits"},"statuses":{"href":"https://api.github.com/repos/aerogear/aerogear-unifiedpush-server/statuses/8ed980e73ba457e6483c6b9590094cb7a4768759"}}}}