{"action":"created","comment":{"url":"https://api.github.com/repos/edu-xored/memorise/pulls/comments/89671289","pull_request_review_id":10214880,"id":89671289,"diff_hunk":"@@ -0,0 +1,42 @@\n+package org.xored.edu.memorise.impl.memo;\n+\n+import org.springframework.beans.factory.annotation.Autowired;\n+import org.springframework.transaction.annotation.Transactional;\n+import org.xored.edu.memorise.api.memo.Memo;\n+import org.xored.edu.memorise.api.memo.services.BasicMemoService;\n+import org.xored.edu.memorise.api.memo.services.SearchMemoService;\n+import org.xored.edu.memorise.core.dao.JpaDao;\n+\n+import java.util.List;\n+\n+/**\n+ * Created by Anatoly on 25.11.2016.\n+ */\n+public class JpaBasicMemoService extends JpaDao<Memo, Long> implements BasicMemoService {\n+    private SearchMemoService searchMemoService;\n+\n+    public JpaBasicMemoService() {\n+        super(Memo.class);\n+    }\n+\n+    @Override\n+    @Transactional\n+    public Memo saveMemo(Memo memo) {\n+        return this.save(memo);\n+    }\n+\n+    @Override\n+    public void deleteMemo(Memo memo) {\n+        List memosByTitle = searchMemoService.findMemosByTitle(memo.getTitle());","path":"memorise-web-app/src/main/java/org/xored/edu/memorise/impl/memo/JpaBasicMemoService.java","position":30,"original_position":30,"commit_id":"b9f46af5238222beb2650803495a0bce6a058003","original_commit_id":"b9f46af5238222beb2650803495a0bce6a058003","user":{"login":"aonnikov","id":5876715,"avatar_url":"https://avatars.githubusercontent.com/u/5876715?v=3","gravatar_id":"","url":"https://api.github.com/users/aonnikov","html_url":"https://github.com/aonnikov","followers_url":"https://api.github.com/users/aonnikov/followers","following_url":"https://api.github.com/users/aonnikov/following{/other_user}","gists_url":"https://api.github.com/users/aonnikov/gists{/gist_id}","starred_url":"https://api.github.com/users/aonnikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aonnikov/subscriptions","organizations_url":"https://api.github.com/users/aonnikov/orgs","repos_url":"https://api.github.com/users/aonnikov/repos","events_url":"https://api.github.com/users/aonnikov/events{/privacy}","received_events_url":"https://api.github.com/users/aonnikov/received_events","type":"User","site_admin":false},"body":"`List<Memo>`  я имел ввиду","created_at":"2016-11-26T12:53:35Z","updated_at":"2016-11-26T12:53:35Z","html_url":"https://github.com/edu-xored/memorise/pull/83#discussion_r89671289","pull_request_url":"https://api.github.com/repos/edu-xored/memorise/pulls/83","_links":{"self":{"href":"https://api.github.com/repos/edu-xored/memorise/pulls/comments/89671289"},"html":{"href":"https://github.com/edu-xored/memorise/pull/83#discussion_r89671289"},"pull_request":{"href":"https://api.github.com/repos/edu-xored/memorise/pulls/83"}}},"pull_request":{"url":"https://api.github.com/repos/edu-xored/memorise/pulls/83","id":95368831,"html_url":"https://github.com/edu-xored/memorise/pull/83","diff_url":"https://github.com/edu-xored/memorise/pull/83.diff","patch_url":"https://github.com/edu-xored/memorise/pull/83.patch","issue_url":"https://api.github.com/repos/edu-xored/memorise/issues/83","number":83,"state":"open","locked":false,"title":"Linked crawler with database","user":{"login":"Rhymmor","id":15522310,"avatar_url":"https://avatars.githubusercontent.com/u/15522310?v=3","gravatar_id":"","url":"https://api.github.com/users/Rhymmor","html_url":"https://github.com/Rhymmor","followers_url":"https://api.github.com/users/Rhymmor/followers","following_url":"https://api.github.com/users/Rhymmor/following{/other_user}","gists_url":"https://api.github.com/users/Rhymmor/gists{/gist_id}","starred_url":"https://api.github.com/users/Rhymmor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rhymmor/subscriptions","organizations_url":"https://api.github.com/users/Rhymmor/orgs","repos_url":"https://api.github.com/users/Rhymmor/repos","events_url":"https://api.github.com/users/Rhymmor/events{/privacy}","received_events_url":"https://api.github.com/users/Rhymmor/received_events","type":"User","site_admin":false},"body":"Краулер теперь добавляет в бд нашедший мем или обновляет, если он уже есть #82. Добавлен базовый сервис с операцией сохранения и удаления, чтобы не работать напрямую с дао #81. Все сервисы перемещены в в отдельный пакет api/memo/services.","created_at":"2016-11-26T11:21:18Z","updated_at":"2016-11-26T12:53:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1ce0c8881ae03bb7f0cb6bdaddfa6384477f134d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/edu-xored/memorise/pulls/83/commits","review_comments_url":"https://api.github.com/repos/edu-xored/memorise/pulls/83/comments","review_comment_url":"https://api.github.com/repos/edu-xored/memorise/pulls/comments{/number}","comments_url":"https://api.github.com/repos/edu-xored/memorise/issues/83/comments","statuses_url":"https://api.github.com/repos/edu-xored/memorise/statuses/b9f46af5238222beb2650803495a0bce6a058003","head":{"label":"edu-xored:issue#82","ref":"issue#82","sha":"b9f46af5238222beb2650803495a0bce6a058003","user":{"login":"edu-xored","id":21689140,"avatar_url":"https://avatars.githubusercontent.com/u/21689140?v=3","gravatar_id":"","url":"https://api.github.com/users/edu-xored","html_url":"https://github.com/edu-xored","followers_url":"https://api.github.com/users/edu-xored/followers","following_url":"https://api.github.com/users/edu-xored/following{/other_user}","gists_url":"https://api.github.com/users/edu-xored/gists{/gist_id}","starred_url":"https://api.github.com/users/edu-xored/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edu-xored/subscriptions","organizations_url":"https://api.github.com/users/edu-xored/orgs","repos_url":"https://api.github.com/users/edu-xored/repos","events_url":"https://api.github.com/users/edu-xored/events{/privacy}","received_events_url":"https://api.github.com/users/edu-xored/received_events","type":"Organization","site_admin":false},"repo":{"id":70772509,"name":"memorise","full_name":"edu-xored/memorise","owner":{"login":"edu-xored","id":21689140,"avatar_url":"https://avatars.githubusercontent.com/u/21689140?v=3","gravatar_id":"","url":"https://api.github.com/users/edu-xored","html_url":"https://github.com/edu-xored","followers_url":"https://api.github.com/users/edu-xored/followers","following_url":"https://api.github.com/users/edu-xored/following{/other_user}","gists_url":"https://api.github.com/users/edu-xored/gists{/gist_id}","starred_url":"https://api.github.com/users/edu-xored/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edu-xored/subscriptions","organizations_url":"https://api.github.com/users/edu-xored/orgs","repos_url":"https://api.github.com/users/edu-xored/repos","events_url":"https://api.github.com/users/edu-xored/events{/privacy}","received_events_url":"https://api.github.com/users/edu-xored/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/edu-xored/memorise","description":"Looking for memes that are becoming popular","fork":false,"url":"https://api.github.com/repos/edu-xored/memorise","forks_url":"https://api.github.com/repos/edu-xored/memorise/forks","keys_url":"https://api.github.com/repos/edu-xored/memorise/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edu-xored/memorise/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edu-xored/memorise/teams","hooks_url":"https://api.github.com/repos/edu-xored/memorise/hooks","issue_events_url":"https://api.github.com/repos/edu-xored/memorise/issues/events{/number}","events_url":"https://api.github.com/repos/edu-xored/memorise/events","assignees_url":"https://api.github.com/repos/edu-xored/memorise/assignees{/user}","branches_url":"https://api.github.com/repos/edu-xored/memorise/branches{/branch}","tags_url":"https://api.github.com/repos/edu-xored/memorise/tags","blobs_url":"https://api.github.com/repos/edu-xored/memorise/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edu-xored/memorise/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edu-xored/memorise/git/refs{/sha}","trees_url":"https://api.github.com/repos/edu-xored/memorise/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edu-xored/memorise/statuses/{sha}","languages_url":"https://api.github.com/repos/edu-xored/memorise/languages","stargazers_url":"https://api.github.com/repos/edu-xored/memorise/stargazers","contributors_url":"https://api.github.com/repos/edu-xored/memorise/contributors","subscribers_url":"https://api.github.com/repos/edu-xored/memorise/subscribers","subscription_url":"https://api.github.com/repos/edu-xored/memorise/subscription","commits_url":"https://api.github.com/repos/edu-xored/memorise/commits{/sha}","git_commits_url":"https://api.github.com/repos/edu-xored/memorise/git/commits{/sha}","comments_url":"https://api.github.com/repos/edu-xored/memorise/comments{/number}","issue_comment_url":"https://api.github.com/repos/edu-xored/memorise/issues/comments{/number}","contents_url":"https://api.github.com/repos/edu-xored/memorise/contents/{+path}","compare_url":"https://api.github.com/repos/edu-xored/memorise/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edu-xored/memorise/merges","archive_url":"https://api.github.com/repos/edu-xored/memorise/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edu-xored/memorise/downloads","issues_url":"https://api.github.com/repos/edu-xored/memorise/issues{/number}","pulls_url":"https://api.github.com/repos/edu-xored/memorise/pulls{/number}","milestones_url":"https://api.github.com/repos/edu-xored/memorise/milestones{/number}","notifications_url":"https://api.github.com/repos/edu-xored/memorise/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edu-xored/memorise/labels{/name}","releases_url":"https://api.github.com/repos/edu-xored/memorise/releases{/id}","deployments_url":"https://api.github.com/repos/edu-xored/memorise/deployments","created_at":"2016-10-13T05:37:28Z","updated_at":"2016-11-10T14:45:59Z","pushed_at":"2016-11-26T11:21:18Z","git_url":"git://github.com/edu-xored/memorise.git","ssh_url":"git@github.com:edu-xored/memorise.git","clone_url":"https://github.com/edu-xored/memorise.git","svn_url":"https://github.com/edu-xored/memorise","homepage":"","size":3276,"stargazers_count":12,"watchers_count":12,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":9,"forks":5,"open_issues":9,"watchers":12,"default_branch":"master"}},"base":{"label":"edu-xored:master","ref":"master","sha":"eb6bee865340dbc13e366c9a176502ab18010be6","user":{"login":"edu-xored","id":21689140,"avatar_url":"https://avatars.githubusercontent.com/u/21689140?v=3","gravatar_id":"","url":"https://api.github.com/users/edu-xored","html_url":"https://github.com/edu-xored","followers_url":"https://api.github.com/users/edu-xored/followers","following_url":"https://api.github.com/users/edu-xored/following{/other_user}","gists_url":"https://api.github.com/users/edu-xored/gists{/gist_id}","starred_url":"https://api.github.com/users/edu-xored/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edu-xored/subscriptions","organizations_url":"https://api.github.com/users/edu-xored/orgs","repos_url":"https://api.github.com/users/edu-xored/repos","events_url":"https://api.github.com/users/edu-xored/events{/privacy}","received_events_url":"https://api.github.com/users/edu-xored/received_events","type":"Organization","site_admin":false},"repo":{"id":70772509,"name":"memorise","full_name":"edu-xored/memorise","owner":{"login":"edu-xored","id":21689140,"avatar_url":"https://avatars.githubusercontent.com/u/21689140?v=3","gravatar_id":"","url":"https://api.github.com/users/edu-xored","html_url":"https://github.com/edu-xored","followers_url":"https://api.github.com/users/edu-xored/followers","following_url":"https://api.github.com/users/edu-xored/following{/other_user}","gists_url":"https://api.github.com/users/edu-xored/gists{/gist_id}","starred_url":"https://api.github.com/users/edu-xored/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edu-xored/subscriptions","organizations_url":"https://api.github.com/users/edu-xored/orgs","repos_url":"https://api.github.com/users/edu-xored/repos","events_url":"https://api.github.com/users/edu-xored/events{/privacy}","received_events_url":"https://api.github.com/users/edu-xored/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/edu-xored/memorise","description":"Looking for memes that are becoming popular","fork":false,"url":"https://api.github.com/repos/edu-xored/memorise","forks_url":"https://api.github.com/repos/edu-xored/memorise/forks","keys_url":"https://api.github.com/repos/edu-xored/memorise/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edu-xored/memorise/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edu-xored/memorise/teams","hooks_url":"https://api.github.com/repos/edu-xored/memorise/hooks","issue_events_url":"https://api.github.com/repos/edu-xored/memorise/issues/events{/number}","events_url":"https://api.github.com/repos/edu-xored/memorise/events","assignees_url":"https://api.github.com/repos/edu-xored/memorise/assignees{/user}","branches_url":"https://api.github.com/repos/edu-xored/memorise/branches{/branch}","tags_url":"https://api.github.com/repos/edu-xored/memorise/tags","blobs_url":"https://api.github.com/repos/edu-xored/memorise/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edu-xored/memorise/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edu-xored/memorise/git/refs{/sha}","trees_url":"https://api.github.com/repos/edu-xored/memorise/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edu-xored/memorise/statuses/{sha}","languages_url":"https://api.github.com/repos/edu-xored/memorise/languages","stargazers_url":"https://api.github.com/repos/edu-xored/memorise/stargazers","contributors_url":"https://api.github.com/repos/edu-xored/memorise/contributors","subscribers_url":"https://api.github.com/repos/edu-xored/memorise/subscribers","subscription_url":"https://api.github.com/repos/edu-xored/memorise/subscription","commits_url":"https://api.github.com/repos/edu-xored/memorise/commits{/sha}","git_commits_url":"https://api.github.com/repos/edu-xored/memorise/git/commits{/sha}","comments_url":"https://api.github.com/repos/edu-xored/memorise/comments{/number}","issue_comment_url":"https://api.github.com/repos/edu-xored/memorise/issues/comments{/number}","contents_url":"https://api.github.com/repos/edu-xored/memorise/contents/{+path}","compare_url":"https://api.github.com/repos/edu-xored/memorise/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edu-xored/memorise/merges","archive_url":"https://api.github.com/repos/edu-xored/memorise/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edu-xored/memorise/downloads","issues_url":"https://api.github.com/repos/edu-xored/memorise/issues{/number}","pulls_url":"https://api.github.com/repos/edu-xored/memorise/pulls{/number}","milestones_url":"https://api.github.com/repos/edu-xored/memorise/milestones{/number}","notifications_url":"https://api.github.com/repos/edu-xored/memorise/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edu-xored/memorise/labels{/name}","releases_url":"https://api.github.com/repos/edu-xored/memorise/releases{/id}","deployments_url":"https://api.github.com/repos/edu-xored/memorise/deployments","created_at":"2016-10-13T05:37:28Z","updated_at":"2016-11-10T14:45:59Z","pushed_at":"2016-11-26T11:21:18Z","git_url":"git://github.com/edu-xored/memorise.git","ssh_url":"git@github.com:edu-xored/memorise.git","clone_url":"https://github.com/edu-xored/memorise.git","svn_url":"https://github.com/edu-xored/memorise","homepage":"","size":3276,"stargazers_count":12,"watchers_count":12,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":9,"forks":5,"open_issues":9,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/edu-xored/memorise/pulls/83"},"html":{"href":"https://github.com/edu-xored/memorise/pull/83"},"issue":{"href":"https://api.github.com/repos/edu-xored/memorise/issues/83"},"comments":{"href":"https://api.github.com/repos/edu-xored/memorise/issues/83/comments"},"review_comments":{"href":"https://api.github.com/repos/edu-xored/memorise/pulls/83/comments"},"review_comment":{"href":"https://api.github.com/repos/edu-xored/memorise/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/edu-xored/memorise/pulls/83/commits"},"statuses":{"href":"https://api.github.com/repos/edu-xored/memorise/statuses/b9f46af5238222beb2650803495a0bce6a058003"}}}}
{"actor":{"display_login":"aonnikov"}}