{"action":"created","comment":{"url":"https://api.github.com/repos/hhru/employer-review/pulls/comments/175257374","pull_request_review_id":104765618,"id":175257374,"diff_hunk":"@@ -0,0 +1,80 @@\n+package ru.hh.school.employerreview.employer;\n+\n+import org.hibernate.SessionFactory;\n+import org.hibernate.Transaction;\n+\n+import java.util.Optional;\n+import java.util.Set;\n+import java.util.function.Supplier;\n+\n+import static java.util.Objects.requireNonNull;\n+\n+public class EmployerService {\n+\n+  private final SessionFactory sessionFactory;\n+  private final EmployerDAO employerDAO;\n+\n+  public EmployerService(SessionFactory sessionFactory, EmployerDAO employerDAO) {","path":"backend/src/main/java/ru/hh/school/employerreview/employer/EmployerService.java","position":17,"original_position":17,"commit_id":"9ecf1c8b397771f750d51247c7cf68f130670ec9","original_commit_id":"9ecf1c8b397771f750d51247c7cf68f130670ec9","user":{"login":"sergey-badanin","id":29163385,"avatar_url":"https://avatars1.githubusercontent.com/u/29163385?v=4","gravatar_id":"","url":"https://api.github.com/users/sergey-badanin","html_url":"https://github.com/sergey-badanin","followers_url":"https://api.github.com/users/sergey-badanin/followers","following_url":"https://api.github.com/users/sergey-badanin/following{/other_user}","gists_url":"https://api.github.com/users/sergey-badanin/gists{/gist_id}","starred_url":"https://api.github.com/users/sergey-badanin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergey-badanin/subscriptions","organizations_url":"https://api.github.com/users/sergey-badanin/orgs","repos_url":"https://api.github.com/users/sergey-badanin/repos","events_url":"https://api.github.com/users/sergey-badanin/events{/privacy}","received_events_url":"https://api.github.com/users/sergey-badanin/received_events","type":"User","site_admin":false},"body":"Для чего здесь sessionFactory ?\r\nУ employerDAO уже есть sessionFactory.\r\n","created_at":"2018-03-17T12:59:47Z","updated_at":"2018-03-17T13:01:45Z","html_url":"https://github.com/hhru/employer-review/pull/4#discussion_r175257374","pull_request_url":"https://api.github.com/repos/hhru/employer-review/pulls/4","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/hhru/employer-review/pulls/comments/175257374"},"html":{"href":"https://github.com/hhru/employer-review/pull/4#discussion_r175257374"},"pull_request":{"href":"https://api.github.com/repos/hhru/employer-review/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/hhru/employer-review/pulls/4","id":174319849,"html_url":"https://github.com/hhru/employer-review/pull/4","diff_url":"https://github.com/hhru/employer-review/pull/4.diff","patch_url":"https://github.com/hhru/employer-review/pull/4.patch","issue_url":"https://api.github.com/repos/hhru/employer-review/issues/4","number":4,"state":"open","locked":false,"title":"Downloading 5000 employers","user":{"login":"colorbash","id":15712656,"avatar_url":"https://avatars3.githubusercontent.com/u/15712656?v=4","gravatar_id":"","url":"https://api.github.com/users/colorbash","html_url":"https://github.com/colorbash","followers_url":"https://api.github.com/users/colorbash/followers","following_url":"https://api.github.com/users/colorbash/following{/other_user}","gists_url":"https://api.github.com/users/colorbash/gists{/gist_id}","starred_url":"https://api.github.com/users/colorbash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colorbash/subscriptions","organizations_url":"https://api.github.com/users/colorbash/orgs","repos_url":"https://api.github.com/users/colorbash/repos","events_url":"https://api.github.com/users/colorbash/events{/privacy}","received_events_url":"https://api.github.com/users/colorbash/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-12T10:03:48Z","updated_at":"2018-03-17T13:01:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"232460843691d382f4950cacfeef8aa832ba921f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/hhru/employer-review/pulls/4/commits","review_comments_url":"https://api.github.com/repos/hhru/employer-review/pulls/4/comments","review_comment_url":"https://api.github.com/repos/hhru/employer-review/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hhru/employer-review/issues/4/comments","statuses_url":"https://api.github.com/repos/hhru/employer-review/statuses/9ecf1c8b397771f750d51247c7cf68f130670ec9","head":{"label":"hhru:Download-at-least-5000-employers","ref":"Download-at-least-5000-employers","sha":"9ecf1c8b397771f750d51247c7cf68f130670ec9","user":{"login":"hhru","id":152753,"avatar_url":"https://avatars2.githubusercontent.com/u/152753?v=4","gravatar_id":"","url":"https://api.github.com/users/hhru","html_url":"https://github.com/hhru","followers_url":"https://api.github.com/users/hhru/followers","following_url":"https://api.github.com/users/hhru/following{/other_user}","gists_url":"https://api.github.com/users/hhru/gists{/gist_id}","starred_url":"https://api.github.com/users/hhru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhru/subscriptions","organizations_url":"https://api.github.com/users/hhru/orgs","repos_url":"https://api.github.com/users/hhru/repos","events_url":"https://api.github.com/users/hhru/events{/privacy}","received_events_url":"https://api.github.com/users/hhru/received_events","type":"Organization","site_admin":false},"repo":{"id":123889493,"name":"employer-review","full_name":"hhru/employer-review","owner":{"login":"hhru","id":152753,"avatar_url":"https://avatars2.githubusercontent.com/u/152753?v=4","gravatar_id":"","url":"https://api.github.com/users/hhru","html_url":"https://github.com/hhru","followers_url":"https://api.github.com/users/hhru/followers","following_url":"https://api.github.com/users/hhru/following{/other_user}","gists_url":"https://api.github.com/users/hhru/gists{/gist_id}","starred_url":"https://api.github.com/users/hhru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhru/subscriptions","organizations_url":"https://api.github.com/users/hhru/orgs","repos_url":"https://api.github.com/users/hhru/repos","events_url":"https://api.github.com/users/hhru/events{/privacy}","received_events_url":"https://api.github.com/users/hhru/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hhru/employer-review","description":null,"fork":false,"url":"https://api.github.com/repos/hhru/employer-review","forks_url":"https://api.github.com/repos/hhru/employer-review/forks","keys_url":"https://api.github.com/repos/hhru/employer-review/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hhru/employer-review/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hhru/employer-review/teams","hooks_url":"https://api.github.com/repos/hhru/employer-review/hooks","issue_events_url":"https://api.github.com/repos/hhru/employer-review/issues/events{/number}","events_url":"https://api.github.com/repos/hhru/employer-review/events","assignees_url":"https://api.github.com/repos/hhru/employer-review/assignees{/user}","branches_url":"https://api.github.com/repos/hhru/employer-review/branches{/branch}","tags_url":"https://api.github.com/repos/hhru/employer-review/tags","blobs_url":"https://api.github.com/repos/hhru/employer-review/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hhru/employer-review/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hhru/employer-review/git/refs{/sha}","trees_url":"https://api.github.com/repos/hhru/employer-review/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hhru/employer-review/statuses/{sha}","languages_url":"https://api.github.com/repos/hhru/employer-review/languages","stargazers_url":"https://api.github.com/repos/hhru/employer-review/stargazers","contributors_url":"https://api.github.com/repos/hhru/employer-review/contributors","subscribers_url":"https://api.github.com/repos/hhru/employer-review/subscribers","subscription_url":"https://api.github.com/repos/hhru/employer-review/subscription","commits_url":"https://api.github.com/repos/hhru/employer-review/commits{/sha}","git_commits_url":"https://api.github.com/repos/hhru/employer-review/git/commits{/sha}","comments_url":"https://api.github.com/repos/hhru/employer-review/comments{/number}","issue_comment_url":"https://api.github.com/repos/hhru/employer-review/issues/comments{/number}","contents_url":"https://api.github.com/repos/hhru/employer-review/contents/{+path}","compare_url":"https://api.github.com/repos/hhru/employer-review/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hhru/employer-review/merges","archive_url":"https://api.github.com/repos/hhru/employer-review/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hhru/employer-review/downloads","issues_url":"https://api.github.com/repos/hhru/employer-review/issues{/number}","pulls_url":"https://api.github.com/repos/hhru/employer-review/pulls{/number}","milestones_url":"https://api.github.com/repos/hhru/employer-review/milestones{/number}","notifications_url":"https://api.github.com/repos/hhru/employer-review/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hhru/employer-review/labels{/name}","releases_url":"https://api.github.com/repos/hhru/employer-review/releases{/id}","deployments_url":"https://api.github.com/repos/hhru/employer-review/deployments","created_at":"2018-03-05T08:36:32Z","updated_at":"2018-03-15T15:25:06Z","pushed_at":"2018-03-16T06:37:09Z","git_url":"git://github.com/hhru/employer-review.git","ssh_url":"git@github.com:hhru/employer-review.git","clone_url":"https://github.com/hhru/employer-review.git","svn_url":"https://github.com/hhru/employer-review","homepage":null,"size":39,"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":1,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"hhru:master","ref":"master","sha":"77c590e3164fac393f21742567e6ed7051a26caa","user":{"login":"hhru","id":152753,"avatar_url":"https://avatars2.githubusercontent.com/u/152753?v=4","gravatar_id":"","url":"https://api.github.com/users/hhru","html_url":"https://github.com/hhru","followers_url":"https://api.github.com/users/hhru/followers","following_url":"https://api.github.com/users/hhru/following{/other_user}","gists_url":"https://api.github.com/users/hhru/gists{/gist_id}","starred_url":"https://api.github.com/users/hhru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhru/subscriptions","organizations_url":"https://api.github.com/users/hhru/orgs","repos_url":"https://api.github.com/users/hhru/repos","events_url":"https://api.github.com/users/hhru/events{/privacy}","received_events_url":"https://api.github.com/users/hhru/received_events","type":"Organization","site_admin":false},"repo":{"id":123889493,"name":"employer-review","full_name":"hhru/employer-review","owner":{"login":"hhru","id":152753,"avatar_url":"https://avatars2.githubusercontent.com/u/152753?v=4","gravatar_id":"","url":"https://api.github.com/users/hhru","html_url":"https://github.com/hhru","followers_url":"https://api.github.com/users/hhru/followers","following_url":"https://api.github.com/users/hhru/following{/other_user}","gists_url":"https://api.github.com/users/hhru/gists{/gist_id}","starred_url":"https://api.github.com/users/hhru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhru/subscriptions","organizations_url":"https://api.github.com/users/hhru/orgs","repos_url":"https://api.github.com/users/hhru/repos","events_url":"https://api.github.com/users/hhru/events{/privacy}","received_events_url":"https://api.github.com/users/hhru/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hhru/employer-review","description":null,"fork":false,"url":"https://api.github.com/repos/hhru/employer-review","forks_url":"https://api.github.com/repos/hhru/employer-review/forks","keys_url":"https://api.github.com/repos/hhru/employer-review/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hhru/employer-review/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hhru/employer-review/teams","hooks_url":"https://api.github.com/repos/hhru/employer-review/hooks","issue_events_url":"https://api.github.com/repos/hhru/employer-review/issues/events{/number}","events_url":"https://api.github.com/repos/hhru/employer-review/events","assignees_url":"https://api.github.com/repos/hhru/employer-review/assignees{/user}","branches_url":"https://api.github.com/repos/hhru/employer-review/branches{/branch}","tags_url":"https://api.github.com/repos/hhru/employer-review/tags","blobs_url":"https://api.github.com/repos/hhru/employer-review/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hhru/employer-review/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hhru/employer-review/git/refs{/sha}","trees_url":"https://api.github.com/repos/hhru/employer-review/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hhru/employer-review/statuses/{sha}","languages_url":"https://api.github.com/repos/hhru/employer-review/languages","stargazers_url":"https://api.github.com/repos/hhru/employer-review/stargazers","contributors_url":"https://api.github.com/repos/hhru/employer-review/contributors","subscribers_url":"https://api.github.com/repos/hhru/employer-review/subscribers","subscription_url":"https://api.github.com/repos/hhru/employer-review/subscription","commits_url":"https://api.github.com/repos/hhru/employer-review/commits{/sha}","git_commits_url":"https://api.github.com/repos/hhru/employer-review/git/commits{/sha}","comments_url":"https://api.github.com/repos/hhru/employer-review/comments{/number}","issue_comment_url":"https://api.github.com/repos/hhru/employer-review/issues/comments{/number}","contents_url":"https://api.github.com/repos/hhru/employer-review/contents/{+path}","compare_url":"https://api.github.com/repos/hhru/employer-review/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hhru/employer-review/merges","archive_url":"https://api.github.com/repos/hhru/employer-review/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hhru/employer-review/downloads","issues_url":"https://api.github.com/repos/hhru/employer-review/issues{/number}","pulls_url":"https://api.github.com/repos/hhru/employer-review/pulls{/number}","milestones_url":"https://api.github.com/repos/hhru/employer-review/milestones{/number}","notifications_url":"https://api.github.com/repos/hhru/employer-review/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hhru/employer-review/labels{/name}","releases_url":"https://api.github.com/repos/hhru/employer-review/releases{/id}","deployments_url":"https://api.github.com/repos/hhru/employer-review/deployments","created_at":"2018-03-05T08:36:32Z","updated_at":"2018-03-15T15:25:06Z","pushed_at":"2018-03-16T06:37:09Z","git_url":"git://github.com/hhru/employer-review.git","ssh_url":"git@github.com:hhru/employer-review.git","clone_url":"https://github.com/hhru/employer-review.git","svn_url":"https://github.com/hhru/employer-review","homepage":null,"size":39,"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":1,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hhru/employer-review/pulls/4"},"html":{"href":"https://github.com/hhru/employer-review/pull/4"},"issue":{"href":"https://api.github.com/repos/hhru/employer-review/issues/4"},"comments":{"href":"https://api.github.com/repos/hhru/employer-review/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/hhru/employer-review/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/hhru/employer-review/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hhru/employer-review/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/hhru/employer-review/statuses/9ecf1c8b397771f750d51247c7cf68f130670ec9"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"sergey-badanin"}}