{"action":"created","comment":{"url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/pulls/comments/151870451","pull_request_review_id":77648279,"id":151870451,"diff_hunk":"@@ -126,14 +154,148 @@ public AssetServiceImpl(@NotNull final EntityManagerFactory entityManagerFactory\n     }\n \n     @Override\n-    public void addFileToAsset(@NotNull final FileEntity file, @NotNull final AssetEntity asset) {\n+    public void addFileToAsset(@NotNull final FileEntity file, final long id) {\n+        AssetEntity asset = assetRepository.findById(id).orElse(null);\n+        if (asset == null) throw new NoSuchElementException(\"No asset with id: \" + id);\n         asset.addFile(file);\n         assetRepository.save(asset);\n     }\n \n     @Override\n-    public void removeFileFromAsset(@NotNull final FileEntity file, @NotNull final AssetEntity asset) {\n+    public void removeFileFromAsset(@NotNull final FileEntity file, final long id) {\n+        AssetEntity asset = assetRepository.findById(id).orElse(null);","path":"src/main/java/com/jme/asset/store/service/impl/AssetServiceImpl.java","position":110,"original_position":110,"commit_id":"3bbb24176ef8be6286f0ca1acf32ec61b4e8c9d4","original_commit_id":"3bbb24176ef8be6286f0ca1acf32ec61b4e8c9d4","user":{"login":"JavaSaBr","id":7160534,"avatar_url":"https://avatars1.githubusercontent.com/u/7160534?v=4","gravatar_id":"","url":"https://api.github.com/users/JavaSaBr","html_url":"https://github.com/JavaSaBr","followers_url":"https://api.github.com/users/JavaSaBr/followers","following_url":"https://api.github.com/users/JavaSaBr/following{/other_user}","gists_url":"https://api.github.com/users/JavaSaBr/gists{/gist_id}","starred_url":"https://api.github.com/users/JavaSaBr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JavaSaBr/subscriptions","organizations_url":"https://api.github.com/users/JavaSaBr/orgs","repos_url":"https://api.github.com/users/JavaSaBr/repos","events_url":"https://api.github.com/users/JavaSaBr/events{/privacy}","received_events_url":"https://api.github.com/users/JavaSaBr/received_events","type":"User","site_admin":false},"body":"тоже самое","created_at":"2017-11-19T16:55:35Z","updated_at":"2017-11-19T16:55:35Z","html_url":"https://github.com/JavaSaBr/jME-Asset-Store/pull/37#discussion_r151870451","pull_request_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/pulls/37","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/pulls/comments/151870451"},"html":{"href":"https://github.com/JavaSaBr/jME-Asset-Store/pull/37#discussion_r151870451"},"pull_request":{"href":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/pulls/37"}}},"pull_request":{"url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/pulls/37","id":153503371,"html_url":"https://github.com/JavaSaBr/jME-Asset-Store/pull/37","diff_url":"https://github.com/JavaSaBr/jME-Asset-Store/pull/37.diff","patch_url":"https://github.com/JavaSaBr/jME-Asset-Store/pull/37.patch","issue_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/issues/37","number":37,"state":"open","locked":false,"title":"Browsing","user":{"login":"YunkevichAndrei","id":19621741,"avatar_url":"https://avatars1.githubusercontent.com/u/19621741?v=4","gravatar_id":"","url":"https://api.github.com/users/YunkevichAndrei","html_url":"https://github.com/YunkevichAndrei","followers_url":"https://api.github.com/users/YunkevichAndrei/followers","following_url":"https://api.github.com/users/YunkevichAndrei/following{/other_user}","gists_url":"https://api.github.com/users/YunkevichAndrei/gists{/gist_id}","starred_url":"https://api.github.com/users/YunkevichAndrei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YunkevichAndrei/subscriptions","organizations_url":"https://api.github.com/users/YunkevichAndrei/orgs","repos_url":"https://api.github.com/users/YunkevichAndrei/repos","events_url":"https://api.github.com/users/YunkevichAndrei/events{/privacy}","received_events_url":"https://api.github.com/users/YunkevichAndrei/received_events","type":"User","site_admin":false},"body":"Added tree-view component, browsing component, getAssets method in AssetService, getCategoryAndAllChildren in AssetCategoryService. Added method in AssetCategoryController, AssetController.","created_at":"2017-11-19T16:18:56Z","updated_at":"2017-11-19T16:55:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"71521860fa52cde88a07dd289ba34a6eb49506d5","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/pulls/37/commits","review_comments_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/pulls/37/comments","review_comment_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/issues/37/comments","statuses_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/statuses/3bbb24176ef8be6286f0ca1acf32ec61b4e8c9d4","head":{"label":"JavaSaBr:browsing","ref":"browsing","sha":"3bbb24176ef8be6286f0ca1acf32ec61b4e8c9d4","user":{"login":"JavaSaBr","id":7160534,"avatar_url":"https://avatars1.githubusercontent.com/u/7160534?v=4","gravatar_id":"","url":"https://api.github.com/users/JavaSaBr","html_url":"https://github.com/JavaSaBr","followers_url":"https://api.github.com/users/JavaSaBr/followers","following_url":"https://api.github.com/users/JavaSaBr/following{/other_user}","gists_url":"https://api.github.com/users/JavaSaBr/gists{/gist_id}","starred_url":"https://api.github.com/users/JavaSaBr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JavaSaBr/subscriptions","organizations_url":"https://api.github.com/users/JavaSaBr/orgs","repos_url":"https://api.github.com/users/JavaSaBr/repos","events_url":"https://api.github.com/users/JavaSaBr/events{/privacy}","received_events_url":"https://api.github.com/users/JavaSaBr/received_events","type":"User","site_admin":false},"repo":{"id":105921976,"name":"jME-Asset-Store","full_name":"JavaSaBr/jME-Asset-Store","owner":{"login":"JavaSaBr","id":7160534,"avatar_url":"https://avatars1.githubusercontent.com/u/7160534?v=4","gravatar_id":"","url":"https://api.github.com/users/JavaSaBr","html_url":"https://github.com/JavaSaBr","followers_url":"https://api.github.com/users/JavaSaBr/followers","following_url":"https://api.github.com/users/JavaSaBr/following{/other_user}","gists_url":"https://api.github.com/users/JavaSaBr/gists{/gist_id}","starred_url":"https://api.github.com/users/JavaSaBr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JavaSaBr/subscriptions","organizations_url":"https://api.github.com/users/JavaSaBr/orgs","repos_url":"https://api.github.com/users/JavaSaBr/repos","events_url":"https://api.github.com/users/JavaSaBr/events{/privacy}","received_events_url":"https://api.github.com/users/JavaSaBr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JavaSaBr/jME-Asset-Store","description":"Asset Store for jMonkeyEngine","fork":false,"url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store","forks_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/forks","keys_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/teams","hooks_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/hooks","issue_events_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/issues/events{/number}","events_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/events","assignees_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/assignees{/user}","branches_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/branches{/branch}","tags_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/tags","blobs_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/git/refs{/sha}","trees_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/statuses/{sha}","languages_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/languages","stargazers_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/stargazers","contributors_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/contributors","subscribers_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/subscribers","subscription_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/subscription","commits_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/commits{/sha}","git_commits_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/git/commits{/sha}","comments_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/comments{/number}","issue_comment_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/issues/comments{/number}","contents_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/contents/{+path}","compare_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/merges","archive_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/downloads","issues_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/issues{/number}","pulls_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/pulls{/number}","milestones_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/milestones{/number}","notifications_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/labels{/name}","releases_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/releases{/id}","deployments_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/deployments","created_at":"2017-10-05T17:54:28Z","updated_at":"2017-10-27T19:59:18Z","pushed_at":"2017-11-19T16:18:57Z","git_url":"git://github.com/JavaSaBr/jME-Asset-Store.git","ssh_url":"git@github.com:JavaSaBr/jME-Asset-Store.git","clone_url":"https://github.com/JavaSaBr/jME-Asset-Store.git","svn_url":"https://github.com/JavaSaBr/jME-Asset-Store","homepage":null,"size":9958,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":2,"default_branch":"master"}},"base":{"label":"JavaSaBr:develop","ref":"develop","sha":"cfd68c331ee3bd72a9f3741d311f2580fe2fb1ac","user":{"login":"JavaSaBr","id":7160534,"avatar_url":"https://avatars1.githubusercontent.com/u/7160534?v=4","gravatar_id":"","url":"https://api.github.com/users/JavaSaBr","html_url":"https://github.com/JavaSaBr","followers_url":"https://api.github.com/users/JavaSaBr/followers","following_url":"https://api.github.com/users/JavaSaBr/following{/other_user}","gists_url":"https://api.github.com/users/JavaSaBr/gists{/gist_id}","starred_url":"https://api.github.com/users/JavaSaBr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JavaSaBr/subscriptions","organizations_url":"https://api.github.com/users/JavaSaBr/orgs","repos_url":"https://api.github.com/users/JavaSaBr/repos","events_url":"https://api.github.com/users/JavaSaBr/events{/privacy}","received_events_url":"https://api.github.com/users/JavaSaBr/received_events","type":"User","site_admin":false},"repo":{"id":105921976,"name":"jME-Asset-Store","full_name":"JavaSaBr/jME-Asset-Store","owner":{"login":"JavaSaBr","id":7160534,"avatar_url":"https://avatars1.githubusercontent.com/u/7160534?v=4","gravatar_id":"","url":"https://api.github.com/users/JavaSaBr","html_url":"https://github.com/JavaSaBr","followers_url":"https://api.github.com/users/JavaSaBr/followers","following_url":"https://api.github.com/users/JavaSaBr/following{/other_user}","gists_url":"https://api.github.com/users/JavaSaBr/gists{/gist_id}","starred_url":"https://api.github.com/users/JavaSaBr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JavaSaBr/subscriptions","organizations_url":"https://api.github.com/users/JavaSaBr/orgs","repos_url":"https://api.github.com/users/JavaSaBr/repos","events_url":"https://api.github.com/users/JavaSaBr/events{/privacy}","received_events_url":"https://api.github.com/users/JavaSaBr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JavaSaBr/jME-Asset-Store","description":"Asset Store for jMonkeyEngine","fork":false,"url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store","forks_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/forks","keys_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/teams","hooks_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/hooks","issue_events_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/issues/events{/number}","events_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/events","assignees_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/assignees{/user}","branches_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/branches{/branch}","tags_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/tags","blobs_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/git/refs{/sha}","trees_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/statuses/{sha}","languages_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/languages","stargazers_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/stargazers","contributors_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/contributors","subscribers_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/subscribers","subscription_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/subscription","commits_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/commits{/sha}","git_commits_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/git/commits{/sha}","comments_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/comments{/number}","issue_comment_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/issues/comments{/number}","contents_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/contents/{+path}","compare_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/merges","archive_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/downloads","issues_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/issues{/number}","pulls_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/pulls{/number}","milestones_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/milestones{/number}","notifications_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/labels{/name}","releases_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/releases{/id}","deployments_url":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/deployments","created_at":"2017-10-05T17:54:28Z","updated_at":"2017-10-27T19:59:18Z","pushed_at":"2017-11-19T16:18:57Z","git_url":"git://github.com/JavaSaBr/jME-Asset-Store.git","ssh_url":"git@github.com:JavaSaBr/jME-Asset-Store.git","clone_url":"https://github.com/JavaSaBr/jME-Asset-Store.git","svn_url":"https://github.com/JavaSaBr/jME-Asset-Store","homepage":null,"size":9958,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/pulls/37"},"html":{"href":"https://github.com/JavaSaBr/jME-Asset-Store/pull/37"},"issue":{"href":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/issues/37"},"comments":{"href":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/JavaSaBr/jME-Asset-Store/statuses/3bbb24176ef8be6286f0ca1acf32ec61b4e8c9d4"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"JavaSaBr"}}