{"action":"created","comment":{"url":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/pulls/comments/104081703","pull_request_review_id":24897306,"id":104081703,"diff_hunk":"@@ -0,0 +1,83 @@\n+/**\n+ * Copyright (C) 2016 Red Hat, Inc.\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ *         http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+package com.redhat.ipaas.runtime.db;\n+\n+import java.util.Collection;\n+import java.util.HashSet;\n+import java.util.List;\n+import java.util.Set;\n+\n+import static org.junit.Assert.assertEquals;\n+import static org.junit.Assert.assertNotNull;\n+import static org.junit.Assert.assertNull;\n+\n+import javax.persistence.EntityManager;\n+import javax.persistence.EntityManagerFactory;\n+import javax.persistence.Persistence;\n+import javax.persistence.Query;","path":"runtime/src/test/java/com/redhat/ipaas/runtime/db/ActionTest.java","position":30,"original_position":30,"commit_id":"3f76fd880d29c533b362aedc6dc19f1735b54128","original_commit_id":"3f76fd880d29c533b362aedc6dc19f1735b54128","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars2.githubusercontent.com/u/19940114?v=3","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: [Avoid unused imports such as 'javax.persistence.Query'](https://www.codacy.com/app/jimmidyson/ipaas-rest/pullRequest?prid=541448)","created_at":"2017-03-03T03:13:00Z","updated_at":"2017-03-03T03:13:00Z","html_url":"https://github.com/redhat-ipaas/ipaas-rest/pull/135#discussion_r104081703","pull_request_url":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/pulls/135","_links":{"self":{"href":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/pulls/comments/104081703"},"html":{"href":"https://github.com/redhat-ipaas/ipaas-rest/pull/135#discussion_r104081703"},"pull_request":{"href":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/pulls/135"}}},"pull_request":{"url":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/pulls/135","id":108801929,"html_url":"https://github.com/redhat-ipaas/ipaas-rest/pull/135","diff_url":"https://github.com/redhat-ipaas/ipaas-rest/pull/135.diff","patch_url":"https://github.com/redhat-ipaas/ipaas-rest/pull/135.patch","issue_url":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/issues/135","number":135,"state":"open","locked":false,"title":"WIP first entity layout","user":{"login":"KurtStam","id":35576,"avatar_url":"https://avatars3.githubusercontent.com/u/35576?v=3","gravatar_id":"","url":"https://api.github.com/users/KurtStam","html_url":"https://github.com/KurtStam","followers_url":"https://api.github.com/users/KurtStam/followers","following_url":"https://api.github.com/users/KurtStam/following{/other_user}","gists_url":"https://api.github.com/users/KurtStam/gists{/gist_id}","starred_url":"https://api.github.com/users/KurtStam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KurtStam/subscriptions","organizations_url":"https://api.github.com/users/KurtStam/orgs","repos_url":"https://api.github.com/users/KurtStam/repos","events_url":"https://api.github.com/users/KurtStam/events{/privacy}","received_events_url":"https://api.github.com/users/KurtStam/received_events","type":"User","site_admin":false},"body":"Don't merge, just looking for some early feedback on the entity mapping.","created_at":"2017-03-02T16:48:32Z","updated_at":"2017-03-03T03:13:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a1bdc059ccbb63ce590cb536c03c77699467ad68","assignee":{"login":"KurtStam","id":35576,"avatar_url":"https://avatars3.githubusercontent.com/u/35576?v=3","gravatar_id":"","url":"https://api.github.com/users/KurtStam","html_url":"https://github.com/KurtStam","followers_url":"https://api.github.com/users/KurtStam/followers","following_url":"https://api.github.com/users/KurtStam/following{/other_user}","gists_url":"https://api.github.com/users/KurtStam/gists{/gist_id}","starred_url":"https://api.github.com/users/KurtStam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KurtStam/subscriptions","organizations_url":"https://api.github.com/users/KurtStam/orgs","repos_url":"https://api.github.com/users/KurtStam/repos","events_url":"https://api.github.com/users/KurtStam/events{/privacy}","received_events_url":"https://api.github.com/users/KurtStam/received_events","type":"User","site_admin":false},"assignees":[{"login":"KurtStam","id":35576,"avatar_url":"https://avatars3.githubusercontent.com/u/35576?v=3","gravatar_id":"","url":"https://api.github.com/users/KurtStam","html_url":"https://github.com/KurtStam","followers_url":"https://api.github.com/users/KurtStam/followers","following_url":"https://api.github.com/users/KurtStam/following{/other_user}","gists_url":"https://api.github.com/users/KurtStam/gists{/gist_id}","starred_url":"https://api.github.com/users/KurtStam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KurtStam/subscriptions","organizations_url":"https://api.github.com/users/KurtStam/orgs","repos_url":"https://api.github.com/users/KurtStam/repos","events_url":"https://api.github.com/users/KurtStam/events{/privacy}","received_events_url":"https://api.github.com/users/KurtStam/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/pulls/135/commits","review_comments_url":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/pulls/135/comments","review_comment_url":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/pulls/comments{/number}","comments_url":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/issues/135/comments","statuses_url":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/statuses/3f76fd880d29c533b362aedc6dc19f1735b54128","head":{"label":"KurtStam:db","ref":"db","sha":"3f76fd880d29c533b362aedc6dc19f1735b54128","user":{"login":"KurtStam","id":35576,"avatar_url":"https://avatars3.githubusercontent.com/u/35576?v=3","gravatar_id":"","url":"https://api.github.com/users/KurtStam","html_url":"https://github.com/KurtStam","followers_url":"https://api.github.com/users/KurtStam/followers","following_url":"https://api.github.com/users/KurtStam/following{/other_user}","gists_url":"https://api.github.com/users/KurtStam/gists{/gist_id}","starred_url":"https://api.github.com/users/KurtStam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KurtStam/subscriptions","organizations_url":"https://api.github.com/users/KurtStam/orgs","repos_url":"https://api.github.com/users/KurtStam/repos","events_url":"https://api.github.com/users/KurtStam/events{/privacy}","received_events_url":"https://api.github.com/users/KurtStam/received_events","type":"User","site_admin":false},"repo":{"id":75949008,"name":"ipaas-rest","full_name":"KurtStam/ipaas-rest","owner":{"login":"KurtStam","id":35576,"avatar_url":"https://avatars3.githubusercontent.com/u/35576?v=3","gravatar_id":"","url":"https://api.github.com/users/KurtStam","html_url":"https://github.com/KurtStam","followers_url":"https://api.github.com/users/KurtStam/followers","following_url":"https://api.github.com/users/KurtStam/following{/other_user}","gists_url":"https://api.github.com/users/KurtStam/gists{/gist_id}","starred_url":"https://api.github.com/users/KurtStam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KurtStam/subscriptions","organizations_url":"https://api.github.com/users/KurtStam/orgs","repos_url":"https://api.github.com/users/KurtStam/repos","events_url":"https://api.github.com/users/KurtStam/events{/privacy}","received_events_url":"https://api.github.com/users/KurtStam/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KurtStam/ipaas-rest","description":null,"fork":true,"url":"https://api.github.com/repos/KurtStam/ipaas-rest","forks_url":"https://api.github.com/repos/KurtStam/ipaas-rest/forks","keys_url":"https://api.github.com/repos/KurtStam/ipaas-rest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KurtStam/ipaas-rest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KurtStam/ipaas-rest/teams","hooks_url":"https://api.github.com/repos/KurtStam/ipaas-rest/hooks","issue_events_url":"https://api.github.com/repos/KurtStam/ipaas-rest/issues/events{/number}","events_url":"https://api.github.com/repos/KurtStam/ipaas-rest/events","assignees_url":"https://api.github.com/repos/KurtStam/ipaas-rest/assignees{/user}","branches_url":"https://api.github.com/repos/KurtStam/ipaas-rest/branches{/branch}","tags_url":"https://api.github.com/repos/KurtStam/ipaas-rest/tags","blobs_url":"https://api.github.com/repos/KurtStam/ipaas-rest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KurtStam/ipaas-rest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KurtStam/ipaas-rest/git/refs{/sha}","trees_url":"https://api.github.com/repos/KurtStam/ipaas-rest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KurtStam/ipaas-rest/statuses/{sha}","languages_url":"https://api.github.com/repos/KurtStam/ipaas-rest/languages","stargazers_url":"https://api.github.com/repos/KurtStam/ipaas-rest/stargazers","contributors_url":"https://api.github.com/repos/KurtStam/ipaas-rest/contributors","subscribers_url":"https://api.github.com/repos/KurtStam/ipaas-rest/subscribers","subscription_url":"https://api.github.com/repos/KurtStam/ipaas-rest/subscription","commits_url":"https://api.github.com/repos/KurtStam/ipaas-rest/commits{/sha}","git_commits_url":"https://api.github.com/repos/KurtStam/ipaas-rest/git/commits{/sha}","comments_url":"https://api.github.com/repos/KurtStam/ipaas-rest/comments{/number}","issue_comment_url":"https://api.github.com/repos/KurtStam/ipaas-rest/issues/comments{/number}","contents_url":"https://api.github.com/repos/KurtStam/ipaas-rest/contents/{+path}","compare_url":"https://api.github.com/repos/KurtStam/ipaas-rest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KurtStam/ipaas-rest/merges","archive_url":"https://api.github.com/repos/KurtStam/ipaas-rest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KurtStam/ipaas-rest/downloads","issues_url":"https://api.github.com/repos/KurtStam/ipaas-rest/issues{/number}","pulls_url":"https://api.github.com/repos/KurtStam/ipaas-rest/pulls{/number}","milestones_url":"https://api.github.com/repos/KurtStam/ipaas-rest/milestones{/number}","notifications_url":"https://api.github.com/repos/KurtStam/ipaas-rest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KurtStam/ipaas-rest/labels{/name}","releases_url":"https://api.github.com/repos/KurtStam/ipaas-rest/releases{/id}","deployments_url":"https://api.github.com/repos/KurtStam/ipaas-rest/deployments","created_at":"2016-12-08T15:17:25Z","updated_at":"2017-01-19T15:02:35Z","pushed_at":"2017-03-03T03:11:27Z","git_url":"git://github.com/KurtStam/ipaas-rest.git","ssh_url":"git@github.com:KurtStam/ipaas-rest.git","clone_url":"https://github.com/KurtStam/ipaas-rest.git","svn_url":"https://github.com/KurtStam/ipaas-rest","homepage":null,"size":1414,"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":"redhat-ipaas:master","ref":"master","sha":"dd724f42619990d79ad92fcf9ab19ed14b5d8566","user":{"login":"redhat-ipaas","id":23079786,"avatar_url":"https://avatars0.githubusercontent.com/u/23079786?v=3","gravatar_id":"","url":"https://api.github.com/users/redhat-ipaas","html_url":"https://github.com/redhat-ipaas","followers_url":"https://api.github.com/users/redhat-ipaas/followers","following_url":"https://api.github.com/users/redhat-ipaas/following{/other_user}","gists_url":"https://api.github.com/users/redhat-ipaas/gists{/gist_id}","starred_url":"https://api.github.com/users/redhat-ipaas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redhat-ipaas/subscriptions","organizations_url":"https://api.github.com/users/redhat-ipaas/orgs","repos_url":"https://api.github.com/users/redhat-ipaas/repos","events_url":"https://api.github.com/users/redhat-ipaas/events{/privacy}","received_events_url":"https://api.github.com/users/redhat-ipaas/received_events","type":"Organization","site_admin":false},"repo":{"id":75404146,"name":"ipaas-rest","full_name":"redhat-ipaas/ipaas-rest","owner":{"login":"redhat-ipaas","id":23079786,"avatar_url":"https://avatars0.githubusercontent.com/u/23079786?v=3","gravatar_id":"","url":"https://api.github.com/users/redhat-ipaas","html_url":"https://github.com/redhat-ipaas","followers_url":"https://api.github.com/users/redhat-ipaas/followers","following_url":"https://api.github.com/users/redhat-ipaas/following{/other_user}","gists_url":"https://api.github.com/users/redhat-ipaas/gists{/gist_id}","starred_url":"https://api.github.com/users/redhat-ipaas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redhat-ipaas/subscriptions","organizations_url":"https://api.github.com/users/redhat-ipaas/orgs","repos_url":"https://api.github.com/users/redhat-ipaas/repos","events_url":"https://api.github.com/users/redhat-ipaas/events{/privacy}","received_events_url":"https://api.github.com/users/redhat-ipaas/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/redhat-ipaas/ipaas-rest","description":"The API for Red Hat iPaaS - a flexible, customizable, cloud-hosted platform that provides core integration capabilities as a service. It leverages Red Hat's existing product architecture using OpenShift Online/Dedicated and Fuse Integration Services.","fork":false,"url":"https://api.github.com/repos/redhat-ipaas/ipaas-rest","forks_url":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/forks","keys_url":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/teams","hooks_url":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/hooks","issue_events_url":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/issues/events{/number}","events_url":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/events","assignees_url":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/assignees{/user}","branches_url":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/branches{/branch}","tags_url":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/tags","blobs_url":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/git/refs{/sha}","trees_url":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/statuses/{sha}","languages_url":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/languages","stargazers_url":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/stargazers","contributors_url":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/contributors","subscribers_url":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/subscribers","subscription_url":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/subscription","commits_url":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/commits{/sha}","git_commits_url":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/git/commits{/sha}","comments_url":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/comments{/number}","issue_comment_url":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/issues/comments{/number}","contents_url":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/contents/{+path}","compare_url":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/merges","archive_url":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/downloads","issues_url":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/issues{/number}","pulls_url":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/pulls{/number}","milestones_url":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/milestones{/number}","notifications_url":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/labels{/name}","releases_url":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/releases{/id}","deployments_url":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/deployments","created_at":"2016-12-02T14:49:12Z","updated_at":"2017-02-17T14:31:03Z","pushed_at":"2017-03-03T03:11:28Z","git_url":"git://github.com/redhat-ipaas/ipaas-rest.git","ssh_url":"git@github.com:redhat-ipaas/ipaas-rest.git","clone_url":"https://github.com/redhat-ipaas/ipaas-rest.git","svn_url":"https://github.com/redhat-ipaas/ipaas-rest","homepage":"https://ipaas-staging.b6ff.rh-idev.openshiftapps.com/api/v1/","size":1004,"stargazers_count":4,"watchers_count":4,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":14,"forks":9,"open_issues":14,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/pulls/135"},"html":{"href":"https://github.com/redhat-ipaas/ipaas-rest/pull/135"},"issue":{"href":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/issues/135"},"comments":{"href":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/issues/135/comments"},"review_comments":{"href":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/pulls/135/comments"},"review_comment":{"href":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/pulls/135/commits"},"statuses":{"href":"https://api.github.com/repos/redhat-ipaas/ipaas-rest/statuses/3f76fd880d29c533b362aedc6dc19f1735b54128"}}}}
{"actor":{"display_login":"codacy-bot"}}