{"action":"created","comment":{"url":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/pulls/comments/147587443","pull_request_review_id":72703288,"id":147587443,"diff_hunk":"@@ -0,0 +1,53 @@\n+package cz.muni.fi.Dao;\n+\n+import javax.persistence.EntityManager;\n+import javax.persistence.PersistenceContext;\n+import org.springframework.stereotype.Repository;\n+import cz.muni.fi.Entity.Spacecraft;\n+\n+import java.util.List;\n+\n+/**\n+ * @author Vojtech Bruza\n+ */\n+@Repository\n+public class SpacecraftDaoImpl implements SpacecraftDao {\n+\n+    @PersistenceContext\n+    private EntityManager em;\n+\n+    @Override\n+    public void addSpacecraft(Spacecraft spacecraft) {\n+        if (spacecraft == null){\n+            throw new IllegalArgumentException(\"Spacecraft should not be null\");\n+        }\n+        em.persist(spacecraft);\n+    }\n+\n+    @Override\n+    public void removeSpacecraft(Spacecraft spacecraft) {","path":"spaceMissionManager-persistance/src/main/java/cz/muni/fi/Dao/SpacecraftDaoImpl.java","position":28,"original_position":28,"commit_id":"402f0dbfb480b868f137026ab0897d4132b8ace9","original_commit_id":"402f0dbfb480b868f137026ab0897d4132b8ace9","user":{"login":"mlynarikj","id":28220449,"avatar_url":"https://avatars1.githubusercontent.com/u/28220449?v=4","gravatar_id":"","url":"https://api.github.com/users/mlynarikj","html_url":"https://github.com/mlynarikj","followers_url":"https://api.github.com/users/mlynarikj/followers","following_url":"https://api.github.com/users/mlynarikj/following{/other_user}","gists_url":"https://api.github.com/users/mlynarikj/gists{/gist_id}","starred_url":"https://api.github.com/users/mlynarikj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlynarikj/subscriptions","organizations_url":"https://api.github.com/users/mlynarikj/orgs","repos_url":"https://api.github.com/users/mlynarikj/repos","events_url":"https://api.github.com/users/mlynarikj/events{/privacy}","received_events_url":"https://api.github.com/users/mlynarikj/received_events","type":"User","site_admin":false},"body":"check if id is not null","created_at":"2017-10-29T17:02:53Z","updated_at":"2017-10-29T17:04:32Z","html_url":"https://github.com/mlynarikj/Space-Mission-Manager/pull/27#discussion_r147587443","pull_request_url":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/pulls/27","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/pulls/comments/147587443"},"html":{"href":"https://github.com/mlynarikj/Space-Mission-Manager/pull/27#discussion_r147587443"},"pull_request":{"href":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/pulls/27","id":149392978,"html_url":"https://github.com/mlynarikj/Space-Mission-Manager/pull/27","diff_url":"https://github.com/mlynarikj/Space-Mission-Manager/pull/27.diff","patch_url":"https://github.com/mlynarikj/Space-Mission-Manager/pull/27.patch","issue_url":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/issues/27","number":27,"state":"open","locked":false,"title":"Spacecraft dao impl fix","user":{"login":"VojtechBruza","id":17923792,"avatar_url":"https://avatars1.githubusercontent.com/u/17923792?v=4","gravatar_id":"","url":"https://api.github.com/users/VojtechBruza","html_url":"https://github.com/VojtechBruza","followers_url":"https://api.github.com/users/VojtechBruza/followers","following_url":"https://api.github.com/users/VojtechBruza/following{/other_user}","gists_url":"https://api.github.com/users/VojtechBruza/gists{/gist_id}","starred_url":"https://api.github.com/users/VojtechBruza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VojtechBruza/subscriptions","organizations_url":"https://api.github.com/users/VojtechBruza/orgs","repos_url":"https://api.github.com/users/VojtechBruza/repos","events_url":"https://api.github.com/users/VojtechBruza/events{/privacy}","received_events_url":"https://api.github.com/users/VojtechBruza/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-10-29T16:19:34Z","updated_at":"2017-10-29T17:04:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c3765940abf6689c5820fe5269ffdf2b3fd3cebc","assignee":null,"assignees":[],"requested_reviewers":[{"login":"jsmadis","id":28220471,"avatar_url":"https://avatars2.githubusercontent.com/u/28220471?v=4","gravatar_id":"","url":"https://api.github.com/users/jsmadis","html_url":"https://github.com/jsmadis","followers_url":"https://api.github.com/users/jsmadis/followers","following_url":"https://api.github.com/users/jsmadis/following{/other_user}","gists_url":"https://api.github.com/users/jsmadis/gists{/gist_id}","starred_url":"https://api.github.com/users/jsmadis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsmadis/subscriptions","organizations_url":"https://api.github.com/users/jsmadis/orgs","repos_url":"https://api.github.com/users/jsmadis/repos","events_url":"https://api.github.com/users/jsmadis/events{/privacy}","received_events_url":"https://api.github.com/users/jsmadis/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/pulls/27/commits","review_comments_url":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/pulls/27/comments","review_comment_url":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/issues/27/comments","statuses_url":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/statuses/402f0dbfb480b868f137026ab0897d4132b8ace9","head":{"label":"VojtechBruza:dao_impl_fix","ref":"dao_impl_fix","sha":"402f0dbfb480b868f137026ab0897d4132b8ace9","user":{"login":"VojtechBruza","id":17923792,"avatar_url":"https://avatars1.githubusercontent.com/u/17923792?v=4","gravatar_id":"","url":"https://api.github.com/users/VojtechBruza","html_url":"https://github.com/VojtechBruza","followers_url":"https://api.github.com/users/VojtechBruza/followers","following_url":"https://api.github.com/users/VojtechBruza/following{/other_user}","gists_url":"https://api.github.com/users/VojtechBruza/gists{/gist_id}","starred_url":"https://api.github.com/users/VojtechBruza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VojtechBruza/subscriptions","organizations_url":"https://api.github.com/users/VojtechBruza/orgs","repos_url":"https://api.github.com/users/VojtechBruza/repos","events_url":"https://api.github.com/users/VojtechBruza/events{/privacy}","received_events_url":"https://api.github.com/users/VojtechBruza/received_events","type":"User","site_admin":false},"repo":{"id":107756670,"name":"Space-Mission-Manager","full_name":"VojtechBruza/Space-Mission-Manager","owner":{"login":"VojtechBruza","id":17923792,"avatar_url":"https://avatars1.githubusercontent.com/u/17923792?v=4","gravatar_id":"","url":"https://api.github.com/users/VojtechBruza","html_url":"https://github.com/VojtechBruza","followers_url":"https://api.github.com/users/VojtechBruza/followers","following_url":"https://api.github.com/users/VojtechBruza/following{/other_user}","gists_url":"https://api.github.com/users/VojtechBruza/gists{/gist_id}","starred_url":"https://api.github.com/users/VojtechBruza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VojtechBruza/subscriptions","organizations_url":"https://api.github.com/users/VojtechBruza/orgs","repos_url":"https://api.github.com/users/VojtechBruza/repos","events_url":"https://api.github.com/users/VojtechBruza/events{/privacy}","received_events_url":"https://api.github.com/users/VojtechBruza/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/VojtechBruza/Space-Mission-Manager","description":"The web application allows the management of a space mission.","fork":true,"url":"https://api.github.com/repos/VojtechBruza/Space-Mission-Manager","forks_url":"https://api.github.com/repos/VojtechBruza/Space-Mission-Manager/forks","keys_url":"https://api.github.com/repos/VojtechBruza/Space-Mission-Manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VojtechBruza/Space-Mission-Manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VojtechBruza/Space-Mission-Manager/teams","hooks_url":"https://api.github.com/repos/VojtechBruza/Space-Mission-Manager/hooks","issue_events_url":"https://api.github.com/repos/VojtechBruza/Space-Mission-Manager/issues/events{/number}","events_url":"https://api.github.com/repos/VojtechBruza/Space-Mission-Manager/events","assignees_url":"https://api.github.com/repos/VojtechBruza/Space-Mission-Manager/assignees{/user}","branches_url":"https://api.github.com/repos/VojtechBruza/Space-Mission-Manager/branches{/branch}","tags_url":"https://api.github.com/repos/VojtechBruza/Space-Mission-Manager/tags","blobs_url":"https://api.github.com/repos/VojtechBruza/Space-Mission-Manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VojtechBruza/Space-Mission-Manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VojtechBruza/Space-Mission-Manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/VojtechBruza/Space-Mission-Manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VojtechBruza/Space-Mission-Manager/statuses/{sha}","languages_url":"https://api.github.com/repos/VojtechBruza/Space-Mission-Manager/languages","stargazers_url":"https://api.github.com/repos/VojtechBruza/Space-Mission-Manager/stargazers","contributors_url":"https://api.github.com/repos/VojtechBruza/Space-Mission-Manager/contributors","subscribers_url":"https://api.github.com/repos/VojtechBruza/Space-Mission-Manager/subscribers","subscription_url":"https://api.github.com/repos/VojtechBruza/Space-Mission-Manager/subscription","commits_url":"https://api.github.com/repos/VojtechBruza/Space-Mission-Manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/VojtechBruza/Space-Mission-Manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/VojtechBruza/Space-Mission-Manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/VojtechBruza/Space-Mission-Manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/VojtechBruza/Space-Mission-Manager/contents/{+path}","compare_url":"https://api.github.com/repos/VojtechBruza/Space-Mission-Manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VojtechBruza/Space-Mission-Manager/merges","archive_url":"https://api.github.com/repos/VojtechBruza/Space-Mission-Manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VojtechBruza/Space-Mission-Manager/downloads","issues_url":"https://api.github.com/repos/VojtechBruza/Space-Mission-Manager/issues{/number}","pulls_url":"https://api.github.com/repos/VojtechBruza/Space-Mission-Manager/pulls{/number}","milestones_url":"https://api.github.com/repos/VojtechBruza/Space-Mission-Manager/milestones{/number}","notifications_url":"https://api.github.com/repos/VojtechBruza/Space-Mission-Manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VojtechBruza/Space-Mission-Manager/labels{/name}","releases_url":"https://api.github.com/repos/VojtechBruza/Space-Mission-Manager/releases{/id}","deployments_url":"https://api.github.com/repos/VojtechBruza/Space-Mission-Manager/deployments","created_at":"2017-10-21T06:20:59Z","updated_at":"2017-10-21T06:21:01Z","pushed_at":"2017-10-29T16:59:13Z","git_url":"git://github.com/VojtechBruza/Space-Mission-Manager.git","ssh_url":"git@github.com:VojtechBruza/Space-Mission-Manager.git","clone_url":"https://github.com/VojtechBruza/Space-Mission-Manager.git","svn_url":"https://github.com/VojtechBruza/Space-Mission-Manager","homepage":"","size":39,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mlynarikj:master","ref":"master","sha":"2f7791fe82c173aa5acb5c0474108eaed9979eda","user":{"login":"mlynarikj","id":28220449,"avatar_url":"https://avatars1.githubusercontent.com/u/28220449?v=4","gravatar_id":"","url":"https://api.github.com/users/mlynarikj","html_url":"https://github.com/mlynarikj","followers_url":"https://api.github.com/users/mlynarikj/followers","following_url":"https://api.github.com/users/mlynarikj/following{/other_user}","gists_url":"https://api.github.com/users/mlynarikj/gists{/gist_id}","starred_url":"https://api.github.com/users/mlynarikj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlynarikj/subscriptions","organizations_url":"https://api.github.com/users/mlynarikj/orgs","repos_url":"https://api.github.com/users/mlynarikj/repos","events_url":"https://api.github.com/users/mlynarikj/events{/privacy}","received_events_url":"https://api.github.com/users/mlynarikj/received_events","type":"User","site_admin":false},"repo":{"id":107258184,"name":"Space-Mission-Manager","full_name":"mlynarikj/Space-Mission-Manager","owner":{"login":"mlynarikj","id":28220449,"avatar_url":"https://avatars1.githubusercontent.com/u/28220449?v=4","gravatar_id":"","url":"https://api.github.com/users/mlynarikj","html_url":"https://github.com/mlynarikj","followers_url":"https://api.github.com/users/mlynarikj/followers","following_url":"https://api.github.com/users/mlynarikj/following{/other_user}","gists_url":"https://api.github.com/users/mlynarikj/gists{/gist_id}","starred_url":"https://api.github.com/users/mlynarikj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlynarikj/subscriptions","organizations_url":"https://api.github.com/users/mlynarikj/orgs","repos_url":"https://api.github.com/users/mlynarikj/repos","events_url":"https://api.github.com/users/mlynarikj/events{/privacy}","received_events_url":"https://api.github.com/users/mlynarikj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mlynarikj/Space-Mission-Manager","description":"The web application allows the management of a space mission.","fork":false,"url":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager","forks_url":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/forks","keys_url":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/teams","hooks_url":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/hooks","issue_events_url":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/issues/events{/number}","events_url":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/events","assignees_url":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/assignees{/user}","branches_url":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/branches{/branch}","tags_url":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/tags","blobs_url":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/statuses/{sha}","languages_url":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/languages","stargazers_url":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/stargazers","contributors_url":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/contributors","subscribers_url":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/subscribers","subscription_url":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/subscription","commits_url":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/contents/{+path}","compare_url":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/merges","archive_url":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/downloads","issues_url":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/issues{/number}","pulls_url":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/pulls{/number}","milestones_url":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/milestones{/number}","notifications_url":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/labels{/name}","releases_url":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/releases{/id}","deployments_url":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/deployments","created_at":"2017-10-17T11:18:35Z","updated_at":"2017-10-26T21:34:48Z","pushed_at":"2017-10-29T16:53:05Z","git_url":"git://github.com/mlynarikj/Space-Mission-Manager.git","ssh_url":"git@github.com:mlynarikj/Space-Mission-Manager.git","clone_url":"https://github.com/mlynarikj/Space-Mission-Manager.git","svn_url":"https://github.com/mlynarikj/Space-Mission-Manager","homepage":"","size":27,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":10,"forks":3,"open_issues":10,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/pulls/27"},"html":{"href":"https://github.com/mlynarikj/Space-Mission-Manager/pull/27"},"issue":{"href":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/issues/27"},"comments":{"href":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/mlynarikj/Space-Mission-Manager/statuses/402f0dbfb480b868f137026ab0897d4132b8ace9"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"mlynarikj"}}