{"action":"created","comment":{"url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/pulls/comments/77144423","id":77144423,"diff_hunk":"@@ -0,0 +1,62 @@\n+package repositories;\n+\n+import dao.BookDAO;\n+import domain.Author;\n+import domain.Book;\n+import domain.Category;\n+import domain.PrintHouse;\n+import lombok.extern.slf4j.Slf4j;\n+import org.springframework.beans.factory.annotation.Autowired;\n+import org.springframework.stereotype.Repository;\n+\n+import java.util.List;\n+import java.util.stream.Collectors;\n+\n+/**\n+ * Class responsible for Inserting Parsed Book into Database\n+ */\n+@Repository\n+@Slf4j\n+public class BookInput {\n+\n+    @Autowired\n+    private AuthorInput authorInput;\n+\n+    @Autowired\n+    private CategoryInput categoryInput;\n+\n+    @Autowired\n+    private PrintHouseInput printHouseInput;\n+\n+    @Autowired\n+    private BookDAO bookDAO;\n+\n+    /**\n+     * Saves the book in BookDAO object.\n+     *\n+     * @param parsedBook - book obtained from Parser.\n+     */\n+    public void save (ParsedBook parsedBook) {\n+        log.info(\"staring operations on database\");","path":"robot-db/src/main/java/repositories/BookInput.java","position":40,"original_position":40,"commit_id":"0e68847b2c1ad6a7f6c081fcfc65cfb4102be5f4","original_commit_id":"0e68847b2c1ad6a7f6c081fcfc65cfb4102be5f4","user":{"login":"LIttleAncientForestKami","id":1167811,"avatar_url":"https://avatars.githubusercontent.com/u/1167811?v=3","gravatar_id":"","url":"https://api.github.com/users/LIttleAncientForestKami","html_url":"https://github.com/LIttleAncientForestKami","followers_url":"https://api.github.com/users/LIttleAncientForestKami/followers","following_url":"https://api.github.com/users/LIttleAncientForestKami/following{/other_user}","gists_url":"https://api.github.com/users/LIttleAncientForestKami/gists{/gist_id}","starred_url":"https://api.github.com/users/LIttleAncientForestKami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LIttleAncientForestKami/subscriptions","organizations_url":"https://api.github.com/users/LIttleAncientForestKami/orgs","repos_url":"https://api.github.com/users/LIttleAncientForestKami/repos","events_url":"https://api.github.com/users/LIttleAncientForestKami/events{/privacy}","received_events_url":"https://api.github.com/users/LIttleAncientForestKami/received_events","type":"User","site_admin":false},"body":"Staring at your staring. :eyes: I guess we shall see who will starT to need :eyeglasses: first. With all that staring (:eyes:).","created_at":"2016-09-01T09:47:27Z","updated_at":"2016-09-01T09:47:27Z","html_url":"https://github.com/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/pull/15#discussion_r77144423","pull_request_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/pulls/comments/77144423"},"html":{"href":"https://github.com/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/pull/15#discussion_r77144423"},"pull_request":{"href":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/pulls/15","id":83463574,"html_url":"https://github.com/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/pull/15","diff_url":"https://github.com/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/pull/15.diff","patch_url":"https://github.com/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/pull/15.patch","issue_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/issues/15","number":15,"state":"open","locked":false,"title":"Feature/db","user":{"login":"KPP13","id":17355029,"avatar_url":"https://avatars.githubusercontent.com/u/17355029?v=3","gravatar_id":"","url":"https://api.github.com/users/KPP13","html_url":"https://github.com/KPP13","followers_url":"https://api.github.com/users/KPP13/followers","following_url":"https://api.github.com/users/KPP13/following{/other_user}","gists_url":"https://api.github.com/users/KPP13/gists{/gist_id}","starred_url":"https://api.github.com/users/KPP13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KPP13/subscriptions","organizations_url":"https://api.github.com/users/KPP13/orgs","repos_url":"https://api.github.com/users/KPP13/repos","events_url":"https://api.github.com/users/KPP13/events{/privacy}","received_events_url":"https://api.github.com/users/KPP13/received_events","type":"User","site_admin":false},"body":"Integration between parser and database module.\r\nCrawler logic is capable of inserting the book data into the relational database.\r\nMany tables with different relations: one-to-one, one-to-many, many-to-many are used.","created_at":"2016-08-31T14:28:42Z","updated_at":"2016-09-01T09:47:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b211a5c36f716e534f6a0d2d3eb8c9e4aee78db7","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/pulls/15/commits","review_comments_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/pulls/15/comments","review_comment_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/issues/15/comments","statuses_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/statuses/0e68847b2c1ad6a7f6c081fcfc65cfb4102be5f4","head":{"label":"G-SHOCK-TEAM:FEATURE/DB","ref":"FEATURE/DB","sha":"0e68847b2c1ad6a7f6c081fcfc65cfb4102be5f4","user":{"login":"G-SHOCK-TEAM","id":21212649,"avatar_url":"https://avatars.githubusercontent.com/u/21212649?v=3","gravatar_id":"","url":"https://api.github.com/users/G-SHOCK-TEAM","html_url":"https://github.com/G-SHOCK-TEAM","followers_url":"https://api.github.com/users/G-SHOCK-TEAM/followers","following_url":"https://api.github.com/users/G-SHOCK-TEAM/following{/other_user}","gists_url":"https://api.github.com/users/G-SHOCK-TEAM/gists{/gist_id}","starred_url":"https://api.github.com/users/G-SHOCK-TEAM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/G-SHOCK-TEAM/subscriptions","organizations_url":"https://api.github.com/users/G-SHOCK-TEAM/orgs","repos_url":"https://api.github.com/users/G-SHOCK-TEAM/repos","events_url":"https://api.github.com/users/G-SHOCK-TEAM/events{/privacy}","received_events_url":"https://api.github.com/users/G-SHOCK-TEAM/received_events","type":"Organization","site_admin":false},"repo":{"id":66431879,"name":"G-SHOCK-TEAM-robot","full_name":"G-SHOCK-TEAM/G-SHOCK-TEAM-robot","owner":{"login":"G-SHOCK-TEAM","id":21212649,"avatar_url":"https://avatars.githubusercontent.com/u/21212649?v=3","gravatar_id":"","url":"https://api.github.com/users/G-SHOCK-TEAM","html_url":"https://github.com/G-SHOCK-TEAM","followers_url":"https://api.github.com/users/G-SHOCK-TEAM/followers","following_url":"https://api.github.com/users/G-SHOCK-TEAM/following{/other_user}","gists_url":"https://api.github.com/users/G-SHOCK-TEAM/gists{/gist_id}","starred_url":"https://api.github.com/users/G-SHOCK-TEAM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/G-SHOCK-TEAM/subscriptions","organizations_url":"https://api.github.com/users/G-SHOCK-TEAM/orgs","repos_url":"https://api.github.com/users/G-SHOCK-TEAM/repos","events_url":"https://api.github.com/users/G-SHOCK-TEAM/events{/privacy}","received_events_url":"https://api.github.com/users/G-SHOCK-TEAM/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/G-SHOCK-TEAM/G-SHOCK-TEAM-robot","description":"Screen scraping project for e-libraries","fork":true,"url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot","forks_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/forks","keys_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/teams","hooks_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/hooks","issue_events_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/issues/events{/number}","events_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/events","assignees_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/assignees{/user}","branches_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/branches{/branch}","tags_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/tags","blobs_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/git/refs{/sha}","trees_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/statuses/{sha}","languages_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/languages","stargazers_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/stargazers","contributors_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/contributors","subscribers_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/subscribers","subscription_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/subscription","commits_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/commits{/sha}","git_commits_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/git/commits{/sha}","comments_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/comments{/number}","issue_comment_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/issues/comments{/number}","contents_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/contents/{+path}","compare_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/merges","archive_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/downloads","issues_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/issues{/number}","pulls_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/pulls{/number}","milestones_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/milestones{/number}","notifications_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/labels{/name}","releases_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/releases{/id}","deployments_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/deployments","created_at":"2016-08-24T05:09:52Z","updated_at":"2016-08-31T07:46:25Z","pushed_at":"2016-09-01T08:49:48Z","git_url":"git://github.com/G-SHOCK-TEAM/G-SHOCK-TEAM-robot.git","ssh_url":"git@github.com:G-SHOCK-TEAM/G-SHOCK-TEAM-robot.git","clone_url":"https://github.com/G-SHOCK-TEAM/G-SHOCK-TEAM-robot.git","svn_url":"https://github.com/G-SHOCK-TEAM/G-SHOCK-TEAM-robot","homepage":null,"size":201,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"base":{"label":"G-SHOCK-TEAM:master","ref":"master","sha":"f1e7852b9508a133ef0b06e9e39381d593afb871","user":{"login":"G-SHOCK-TEAM","id":21212649,"avatar_url":"https://avatars.githubusercontent.com/u/21212649?v=3","gravatar_id":"","url":"https://api.github.com/users/G-SHOCK-TEAM","html_url":"https://github.com/G-SHOCK-TEAM","followers_url":"https://api.github.com/users/G-SHOCK-TEAM/followers","following_url":"https://api.github.com/users/G-SHOCK-TEAM/following{/other_user}","gists_url":"https://api.github.com/users/G-SHOCK-TEAM/gists{/gist_id}","starred_url":"https://api.github.com/users/G-SHOCK-TEAM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/G-SHOCK-TEAM/subscriptions","organizations_url":"https://api.github.com/users/G-SHOCK-TEAM/orgs","repos_url":"https://api.github.com/users/G-SHOCK-TEAM/repos","events_url":"https://api.github.com/users/G-SHOCK-TEAM/events{/privacy}","received_events_url":"https://api.github.com/users/G-SHOCK-TEAM/received_events","type":"Organization","site_admin":false},"repo":{"id":66431879,"name":"G-SHOCK-TEAM-robot","full_name":"G-SHOCK-TEAM/G-SHOCK-TEAM-robot","owner":{"login":"G-SHOCK-TEAM","id":21212649,"avatar_url":"https://avatars.githubusercontent.com/u/21212649?v=3","gravatar_id":"","url":"https://api.github.com/users/G-SHOCK-TEAM","html_url":"https://github.com/G-SHOCK-TEAM","followers_url":"https://api.github.com/users/G-SHOCK-TEAM/followers","following_url":"https://api.github.com/users/G-SHOCK-TEAM/following{/other_user}","gists_url":"https://api.github.com/users/G-SHOCK-TEAM/gists{/gist_id}","starred_url":"https://api.github.com/users/G-SHOCK-TEAM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/G-SHOCK-TEAM/subscriptions","organizations_url":"https://api.github.com/users/G-SHOCK-TEAM/orgs","repos_url":"https://api.github.com/users/G-SHOCK-TEAM/repos","events_url":"https://api.github.com/users/G-SHOCK-TEAM/events{/privacy}","received_events_url":"https://api.github.com/users/G-SHOCK-TEAM/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/G-SHOCK-TEAM/G-SHOCK-TEAM-robot","description":"Screen scraping project for e-libraries","fork":true,"url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot","forks_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/forks","keys_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/teams","hooks_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/hooks","issue_events_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/issues/events{/number}","events_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/events","assignees_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/assignees{/user}","branches_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/branches{/branch}","tags_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/tags","blobs_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/git/refs{/sha}","trees_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/statuses/{sha}","languages_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/languages","stargazers_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/stargazers","contributors_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/contributors","subscribers_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/subscribers","subscription_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/subscription","commits_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/commits{/sha}","git_commits_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/git/commits{/sha}","comments_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/comments{/number}","issue_comment_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/issues/comments{/number}","contents_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/contents/{+path}","compare_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/merges","archive_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/downloads","issues_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/issues{/number}","pulls_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/pulls{/number}","milestones_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/milestones{/number}","notifications_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/labels{/name}","releases_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/releases{/id}","deployments_url":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/deployments","created_at":"2016-08-24T05:09:52Z","updated_at":"2016-08-31T07:46:25Z","pushed_at":"2016-09-01T08:49:48Z","git_url":"git://github.com/G-SHOCK-TEAM/G-SHOCK-TEAM-robot.git","ssh_url":"git@github.com:G-SHOCK-TEAM/G-SHOCK-TEAM-robot.git","clone_url":"https://github.com/G-SHOCK-TEAM/G-SHOCK-TEAM-robot.git","svn_url":"https://github.com/G-SHOCK-TEAM/G-SHOCK-TEAM-robot","homepage":null,"size":201,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/pulls/15"},"html":{"href":"https://github.com/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/pull/15"},"issue":{"href":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/issues/15"},"comments":{"href":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/G-SHOCK-TEAM/G-SHOCK-TEAM-robot/statuses/0e68847b2c1ad6a7f6c081fcfc65cfb4102be5f4"}}}}
{"actor":{"display_login":"LIttleAncientForestKami"}}