{"action":"created","comment":{"url":"https://api.github.com/repos/pkruczek/beerjournal-server/pulls/comments/118498642","pull_request_review_id":40296166,"id":118498642,"diff_hunk":"@@ -0,0 +1,28 @@\n+package com.beerjournal.breweriana.item.rating.persistence;\n+\n+import lombok.Builder;\n+import lombok.Data;\n+import lombok.EqualsAndHashCode;\n+import lombok.RequiredArgsConstructor;\n+import org.bson.types.ObjectId;\n+import org.springframework.data.annotation.Id;\n+import org.springframework.data.mongodb.core.mapping.Document;\n+\n+import static lombok.AccessLevel.PRIVATE;\n+\n+@Document\n+@Data\n+@EqualsAndHashCode(exclude = \"id\")\n+@RequiredArgsConstructor(access = PRIVATE)\n+public final class Rating {\n+    @Id\n+    private final ObjectId id;","path":"src/main/java/com/beerjournal/breweriana/item/rating/persistence/Rating.java","position":19,"original_position":19,"commit_id":"efd2ececf6a085d04bfb341163f8d56fa2af49e9","original_commit_id":"c7a6cd52cfad6cd96e6ec8ecfb8f85e7106712ef","user":{"login":"pkruczek","id":10254986,"avatar_url":"https://avatars2.githubusercontent.com/u/10254986?v=3","gravatar_id":"","url":"https://api.github.com/users/pkruczek","html_url":"https://github.com/pkruczek","followers_url":"https://api.github.com/users/pkruczek/followers","following_url":"https://api.github.com/users/pkruczek/following{/other_user}","gists_url":"https://api.github.com/users/pkruczek/gists{/gist_id}","starred_url":"https://api.github.com/users/pkruczek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkruczek/subscriptions","organizations_url":"https://api.github.com/users/pkruczek/orgs","repos_url":"https://api.github.com/users/pkruczek/repos","events_url":"https://api.github.com/users/pkruczek/events{/privacy}","received_events_url":"https://api.github.com/users/pkruczek/received_events","type":"User","site_admin":false},"body":"In what way do you need to adjust business to tools while using embedded collection? \r\nNow for storing only one int value you need to have 3 ids. If you use embedded collection 1 id is enough (value, userId).\r\nBut ok, it's only university project and we don't have time for discussing. So don't change the model","created_at":"2017-05-25T14:32:39Z","updated_at":"2017-05-25T14:43:05Z","html_url":"https://github.com/pkruczek/beerjournal-server/pull/33#discussion_r118498642","pull_request_url":"https://api.github.com/repos/pkruczek/beerjournal-server/pulls/33","_links":{"self":{"href":"https://api.github.com/repos/pkruczek/beerjournal-server/pulls/comments/118498642"},"html":{"href":"https://github.com/pkruczek/beerjournal-server/pull/33#discussion_r118498642"},"pull_request":{"href":"https://api.github.com/repos/pkruczek/beerjournal-server/pulls/33"}}},"pull_request":{"url":"https://api.github.com/repos/pkruczek/beerjournal-server/pulls/33","id":121663908,"html_url":"https://github.com/pkruczek/beerjournal-server/pull/33","diff_url":"https://github.com/pkruczek/beerjournal-server/pull/33.diff","patch_url":"https://github.com/pkruczek/beerjournal-server/pull/33.patch","issue_url":"https://api.github.com/repos/pkruczek/beerjournal-server/issues/33","number":33,"state":"open","locked":false,"title":"#66 Items rating","user":{"login":"tmachows","id":10448605,"avatar_url":"https://avatars1.githubusercontent.com/u/10448605?v=3","gravatar_id":"","url":"https://api.github.com/users/tmachows","html_url":"https://github.com/tmachows","followers_url":"https://api.github.com/users/tmachows/followers","following_url":"https://api.github.com/users/tmachows/following{/other_user}","gists_url":"https://api.github.com/users/tmachows/gists{/gist_id}","starred_url":"https://api.github.com/users/tmachows/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmachows/subscriptions","organizations_url":"https://api.github.com/users/tmachows/orgs","repos_url":"https://api.github.com/users/tmachows/repos","events_url":"https://api.github.com/users/tmachows/events{/privacy}","received_events_url":"https://api.github.com/users/tmachows/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-05-21T14:58:01Z","updated_at":"2017-05-25T14:43:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2cb164dfd26fa09d155a2cb8cfb0a227b51bc565","assignee":null,"assignees":[],"requested_reviewers":[{"login":"cwikp","id":19744863,"avatar_url":"https://avatars0.githubusercontent.com/u/19744863?v=3","gravatar_id":"","url":"https://api.github.com/users/cwikp","html_url":"https://github.com/cwikp","followers_url":"https://api.github.com/users/cwikp/followers","following_url":"https://api.github.com/users/cwikp/following{/other_user}","gists_url":"https://api.github.com/users/cwikp/gists{/gist_id}","starred_url":"https://api.github.com/users/cwikp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cwikp/subscriptions","organizations_url":"https://api.github.com/users/cwikp/orgs","repos_url":"https://api.github.com/users/cwikp/repos","events_url":"https://api.github.com/users/cwikp/events{/privacy}","received_events_url":"https://api.github.com/users/cwikp/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/pkruczek/beerjournal-server/pulls/33/commits","review_comments_url":"https://api.github.com/repos/pkruczek/beerjournal-server/pulls/33/comments","review_comment_url":"https://api.github.com/repos/pkruczek/beerjournal-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pkruczek/beerjournal-server/issues/33/comments","statuses_url":"https://api.github.com/repos/pkruczek/beerjournal-server/statuses/efd2ececf6a085d04bfb341163f8d56fa2af49e9","head":{"label":"pkruczek:#66-items-rating","ref":"#66-items-rating","sha":"efd2ececf6a085d04bfb341163f8d56fa2af49e9","user":{"login":"pkruczek","id":10254986,"avatar_url":"https://avatars2.githubusercontent.com/u/10254986?v=3","gravatar_id":"","url":"https://api.github.com/users/pkruczek","html_url":"https://github.com/pkruczek","followers_url":"https://api.github.com/users/pkruczek/followers","following_url":"https://api.github.com/users/pkruczek/following{/other_user}","gists_url":"https://api.github.com/users/pkruczek/gists{/gist_id}","starred_url":"https://api.github.com/users/pkruczek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkruczek/subscriptions","organizations_url":"https://api.github.com/users/pkruczek/orgs","repos_url":"https://api.github.com/users/pkruczek/repos","events_url":"https://api.github.com/users/pkruczek/events{/privacy}","received_events_url":"https://api.github.com/users/pkruczek/received_events","type":"User","site_admin":false},"repo":{"id":87112319,"name":"beerjournal-server","full_name":"pkruczek/beerjournal-server","owner":{"login":"pkruczek","id":10254986,"avatar_url":"https://avatars2.githubusercontent.com/u/10254986?v=3","gravatar_id":"","url":"https://api.github.com/users/pkruczek","html_url":"https://github.com/pkruczek","followers_url":"https://api.github.com/users/pkruczek/followers","following_url":"https://api.github.com/users/pkruczek/following{/other_user}","gists_url":"https://api.github.com/users/pkruczek/gists{/gist_id}","starred_url":"https://api.github.com/users/pkruczek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkruczek/subscriptions","organizations_url":"https://api.github.com/users/pkruczek/orgs","repos_url":"https://api.github.com/users/pkruczek/repos","events_url":"https://api.github.com/users/pkruczek/events{/privacy}","received_events_url":"https://api.github.com/users/pkruczek/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pkruczek/beerjournal-server","description":null,"fork":false,"url":"https://api.github.com/repos/pkruczek/beerjournal-server","forks_url":"https://api.github.com/repos/pkruczek/beerjournal-server/forks","keys_url":"https://api.github.com/repos/pkruczek/beerjournal-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pkruczek/beerjournal-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pkruczek/beerjournal-server/teams","hooks_url":"https://api.github.com/repos/pkruczek/beerjournal-server/hooks","issue_events_url":"https://api.github.com/repos/pkruczek/beerjournal-server/issues/events{/number}","events_url":"https://api.github.com/repos/pkruczek/beerjournal-server/events","assignees_url":"https://api.github.com/repos/pkruczek/beerjournal-server/assignees{/user}","branches_url":"https://api.github.com/repos/pkruczek/beerjournal-server/branches{/branch}","tags_url":"https://api.github.com/repos/pkruczek/beerjournal-server/tags","blobs_url":"https://api.github.com/repos/pkruczek/beerjournal-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pkruczek/beerjournal-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pkruczek/beerjournal-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/pkruczek/beerjournal-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pkruczek/beerjournal-server/statuses/{sha}","languages_url":"https://api.github.com/repos/pkruczek/beerjournal-server/languages","stargazers_url":"https://api.github.com/repos/pkruczek/beerjournal-server/stargazers","contributors_url":"https://api.github.com/repos/pkruczek/beerjournal-server/contributors","subscribers_url":"https://api.github.com/repos/pkruczek/beerjournal-server/subscribers","subscription_url":"https://api.github.com/repos/pkruczek/beerjournal-server/subscription","commits_url":"https://api.github.com/repos/pkruczek/beerjournal-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/pkruczek/beerjournal-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/pkruczek/beerjournal-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/pkruczek/beerjournal-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/pkruczek/beerjournal-server/contents/{+path}","compare_url":"https://api.github.com/repos/pkruczek/beerjournal-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pkruczek/beerjournal-server/merges","archive_url":"https://api.github.com/repos/pkruczek/beerjournal-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pkruczek/beerjournal-server/downloads","issues_url":"https://api.github.com/repos/pkruczek/beerjournal-server/issues{/number}","pulls_url":"https://api.github.com/repos/pkruczek/beerjournal-server/pulls{/number}","milestones_url":"https://api.github.com/repos/pkruczek/beerjournal-server/milestones{/number}","notifications_url":"https://api.github.com/repos/pkruczek/beerjournal-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pkruczek/beerjournal-server/labels{/name}","releases_url":"https://api.github.com/repos/pkruczek/beerjournal-server/releases{/id}","deployments_url":"https://api.github.com/repos/pkruczek/beerjournal-server/deployments","created_at":"2017-04-03T19:25:13Z","updated_at":"2017-04-09T12:58:30Z","pushed_at":"2017-05-25T13:54:05Z","git_url":"git://github.com/pkruczek/beerjournal-server.git","ssh_url":"git@github.com:pkruczek/beerjournal-server.git","clone_url":"https://github.com/pkruczek/beerjournal-server.git","svn_url":"https://github.com/pkruczek/beerjournal-server","homepage":null,"size":356,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"pkruczek:master","ref":"master","sha":"44d167fa591bcf023edab8cda4de3fab0d39f194","user":{"login":"pkruczek","id":10254986,"avatar_url":"https://avatars2.githubusercontent.com/u/10254986?v=3","gravatar_id":"","url":"https://api.github.com/users/pkruczek","html_url":"https://github.com/pkruczek","followers_url":"https://api.github.com/users/pkruczek/followers","following_url":"https://api.github.com/users/pkruczek/following{/other_user}","gists_url":"https://api.github.com/users/pkruczek/gists{/gist_id}","starred_url":"https://api.github.com/users/pkruczek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkruczek/subscriptions","organizations_url":"https://api.github.com/users/pkruczek/orgs","repos_url":"https://api.github.com/users/pkruczek/repos","events_url":"https://api.github.com/users/pkruczek/events{/privacy}","received_events_url":"https://api.github.com/users/pkruczek/received_events","type":"User","site_admin":false},"repo":{"id":87112319,"name":"beerjournal-server","full_name":"pkruczek/beerjournal-server","owner":{"login":"pkruczek","id":10254986,"avatar_url":"https://avatars2.githubusercontent.com/u/10254986?v=3","gravatar_id":"","url":"https://api.github.com/users/pkruczek","html_url":"https://github.com/pkruczek","followers_url":"https://api.github.com/users/pkruczek/followers","following_url":"https://api.github.com/users/pkruczek/following{/other_user}","gists_url":"https://api.github.com/users/pkruczek/gists{/gist_id}","starred_url":"https://api.github.com/users/pkruczek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkruczek/subscriptions","organizations_url":"https://api.github.com/users/pkruczek/orgs","repos_url":"https://api.github.com/users/pkruczek/repos","events_url":"https://api.github.com/users/pkruczek/events{/privacy}","received_events_url":"https://api.github.com/users/pkruczek/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pkruczek/beerjournal-server","description":null,"fork":false,"url":"https://api.github.com/repos/pkruczek/beerjournal-server","forks_url":"https://api.github.com/repos/pkruczek/beerjournal-server/forks","keys_url":"https://api.github.com/repos/pkruczek/beerjournal-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pkruczek/beerjournal-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pkruczek/beerjournal-server/teams","hooks_url":"https://api.github.com/repos/pkruczek/beerjournal-server/hooks","issue_events_url":"https://api.github.com/repos/pkruczek/beerjournal-server/issues/events{/number}","events_url":"https://api.github.com/repos/pkruczek/beerjournal-server/events","assignees_url":"https://api.github.com/repos/pkruczek/beerjournal-server/assignees{/user}","branches_url":"https://api.github.com/repos/pkruczek/beerjournal-server/branches{/branch}","tags_url":"https://api.github.com/repos/pkruczek/beerjournal-server/tags","blobs_url":"https://api.github.com/repos/pkruczek/beerjournal-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pkruczek/beerjournal-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pkruczek/beerjournal-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/pkruczek/beerjournal-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pkruczek/beerjournal-server/statuses/{sha}","languages_url":"https://api.github.com/repos/pkruczek/beerjournal-server/languages","stargazers_url":"https://api.github.com/repos/pkruczek/beerjournal-server/stargazers","contributors_url":"https://api.github.com/repos/pkruczek/beerjournal-server/contributors","subscribers_url":"https://api.github.com/repos/pkruczek/beerjournal-server/subscribers","subscription_url":"https://api.github.com/repos/pkruczek/beerjournal-server/subscription","commits_url":"https://api.github.com/repos/pkruczek/beerjournal-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/pkruczek/beerjournal-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/pkruczek/beerjournal-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/pkruczek/beerjournal-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/pkruczek/beerjournal-server/contents/{+path}","compare_url":"https://api.github.com/repos/pkruczek/beerjournal-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pkruczek/beerjournal-server/merges","archive_url":"https://api.github.com/repos/pkruczek/beerjournal-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pkruczek/beerjournal-server/downloads","issues_url":"https://api.github.com/repos/pkruczek/beerjournal-server/issues{/number}","pulls_url":"https://api.github.com/repos/pkruczek/beerjournal-server/pulls{/number}","milestones_url":"https://api.github.com/repos/pkruczek/beerjournal-server/milestones{/number}","notifications_url":"https://api.github.com/repos/pkruczek/beerjournal-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pkruczek/beerjournal-server/labels{/name}","releases_url":"https://api.github.com/repos/pkruczek/beerjournal-server/releases{/id}","deployments_url":"https://api.github.com/repos/pkruczek/beerjournal-server/deployments","created_at":"2017-04-03T19:25:13Z","updated_at":"2017-04-09T12:58:30Z","pushed_at":"2017-05-25T13:54:05Z","git_url":"git://github.com/pkruczek/beerjournal-server.git","ssh_url":"git@github.com:pkruczek/beerjournal-server.git","clone_url":"https://github.com/pkruczek/beerjournal-server.git","svn_url":"https://github.com/pkruczek/beerjournal-server","homepage":null,"size":356,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pkruczek/beerjournal-server/pulls/33"},"html":{"href":"https://github.com/pkruczek/beerjournal-server/pull/33"},"issue":{"href":"https://api.github.com/repos/pkruczek/beerjournal-server/issues/33"},"comments":{"href":"https://api.github.com/repos/pkruczek/beerjournal-server/issues/33/comments"},"review_comments":{"href":"https://api.github.com/repos/pkruczek/beerjournal-server/pulls/33/comments"},"review_comment":{"href":"https://api.github.com/repos/pkruczek/beerjournal-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pkruczek/beerjournal-server/pulls/33/commits"},"statuses":{"href":"https://api.github.com/repos/pkruczek/beerjournal-server/statuses/efd2ececf6a085d04bfb341163f8d56fa2af49e9"}}}}
{"actor":{"display_login":"pkruczek"}}