{"action":"created","comment":{"url":"https://api.github.com/repos/Vygovsky/employee_db/pulls/comments/194744566","pull_request_review_id":127972351,"id":194744566,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NDc0NDU2Ng==","diff_hunk":"@@ -0,0 +1,55 @@\n+package ua.ukr.net.model;\n+\n+import java.util.List;\n+\n+public class Department {\n+    private String name;\n+    List<Employee> employeeDepartment;\n+\n+    public Department(String name, List<Employee> employeeDepartment) {\n+        this.name = name;\n+        this.employeeDepartment = employeeDepartment;\n+    }\n+\n+    public String getName() {\n+        return name;\n+    }\n+\n+    public void setName(String name) {\n+        this.name = name;\n+    }\n+\n+    public List<Employee> getEmployeeDepartment() {\n+        return employeeDepartment;\n+    }\n+\n+    public void setEmployeeDepartment(List<Employee> employeeDepartment) {\n+        this.employeeDepartment = employeeDepartment;\n+    }\n+\n+    @Override\n+    public boolean equals(Object o) {\n+        if (this == o) return true;\n+        if (!(o instanceof Department)) return false;\n+\n+        Department that = (Department) o;\n+\n+        if (name != null ? !name.equals(that.name) : that.name != null) return false;\n+        return employeeDepartment != null ? employeeDepartment.equals(that.employeeDepartment) : that.employeeDepartment == null;\n+    }\n+\n+    @Override\n+    public int hashCode() {\n+        int result = name != null ? name.hashCode() : 0;\n+        result = 31 * result + (employeeDepartment != null ? employeeDepartment.hashCode() : 0);\n+        return result;\n+    }\n+\n+    @Override\n+    public String toString() {","path":"src/main/java/ua/ukr/net/model/Department.java","position":49,"original_position":49,"commit_id":"a316ac22fea32f3b1e6105dd33383fdf1bc6f4ea","original_commit_id":"a316ac22fea32f3b1e6105dd33383fdf1bc6f4ea","user":{"login":"petrykin","id":14791674,"node_id":"MDQ6VXNlcjE0NzkxNjc0","avatar_url":"https://avatars3.githubusercontent.com/u/14791674?v=4","gravatar_id":"","url":"https://api.github.com/users/petrykin","html_url":"https://github.com/petrykin","followers_url":"https://api.github.com/users/petrykin/followers","following_url":"https://api.github.com/users/petrykin/following{/other_user}","gists_url":"https://api.github.com/users/petrykin/gists{/gist_id}","starred_url":"https://api.github.com/users/petrykin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petrykin/subscriptions","organizations_url":"https://api.github.com/users/petrykin/orgs","repos_url":"https://api.github.com/users/petrykin/repos","events_url":"https://api.github.com/users/petrykin/events{/privacy}","received_events_url":"https://api.github.com/users/petrykin/received_events","type":"User","site_admin":false},"body":"it is better to use _com.google.gson_ library and override toString() like:\r\n**return new Gson().toJson(this);**","created_at":"2018-06-12T13:49:29Z","updated_at":"2018-06-12T13:49:30Z","html_url":"https://github.com/Vygovsky/employee_db/pull/5#discussion_r194744566","pull_request_url":"https://api.github.com/repos/Vygovsky/employee_db/pulls/5","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/Vygovsky/employee_db/pulls/comments/194744566"},"html":{"href":"https://github.com/Vygovsky/employee_db/pull/5#discussion_r194744566"},"pull_request":{"href":"https://api.github.com/repos/Vygovsky/employee_db/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/Vygovsky/employee_db/pulls/5","id":194275840,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk0Mjc1ODQw","html_url":"https://github.com/Vygovsky/employee_db/pull/5","diff_url":"https://github.com/Vygovsky/employee_db/pull/5.diff","patch_url":"https://github.com/Vygovsky/employee_db/pull/5.patch","issue_url":"https://api.github.com/repos/Vygovsky/employee_db/issues/5","number":5,"state":"open","locked":false,"title":"Development","user":{"login":"Vygovsky","id":28059881,"node_id":"MDQ6VXNlcjI4MDU5ODgx","avatar_url":"https://avatars0.githubusercontent.com/u/28059881?v=4","gravatar_id":"","url":"https://api.github.com/users/Vygovsky","html_url":"https://github.com/Vygovsky","followers_url":"https://api.github.com/users/Vygovsky/followers","following_url":"https://api.github.com/users/Vygovsky/following{/other_user}","gists_url":"https://api.github.com/users/Vygovsky/gists{/gist_id}","starred_url":"https://api.github.com/users/Vygovsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vygovsky/subscriptions","organizations_url":"https://api.github.com/users/Vygovsky/orgs","repos_url":"https://api.github.com/users/Vygovsky/repos","events_url":"https://api.github.com/users/Vygovsky/events{/privacy}","received_events_url":"https://api.github.com/users/Vygovsky/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-06-12T13:14:42Z","updated_at":"2018-06-12T13:49:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fc451280f93975ece893a5bb76568aca1c45c47c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Vygovsky/employee_db/pulls/5/commits","review_comments_url":"https://api.github.com/repos/Vygovsky/employee_db/pulls/5/comments","review_comment_url":"https://api.github.com/repos/Vygovsky/employee_db/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Vygovsky/employee_db/issues/5/comments","statuses_url":"https://api.github.com/repos/Vygovsky/employee_db/statuses/a316ac22fea32f3b1e6105dd33383fdf1bc6f4ea","head":{"label":"Vygovsky:development","ref":"development","sha":"a316ac22fea32f3b1e6105dd33383fdf1bc6f4ea","user":{"login":"Vygovsky","id":28059881,"node_id":"MDQ6VXNlcjI4MDU5ODgx","avatar_url":"https://avatars0.githubusercontent.com/u/28059881?v=4","gravatar_id":"","url":"https://api.github.com/users/Vygovsky","html_url":"https://github.com/Vygovsky","followers_url":"https://api.github.com/users/Vygovsky/followers","following_url":"https://api.github.com/users/Vygovsky/following{/other_user}","gists_url":"https://api.github.com/users/Vygovsky/gists{/gist_id}","starred_url":"https://api.github.com/users/Vygovsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vygovsky/subscriptions","organizations_url":"https://api.github.com/users/Vygovsky/orgs","repos_url":"https://api.github.com/users/Vygovsky/repos","events_url":"https://api.github.com/users/Vygovsky/events{/privacy}","received_events_url":"https://api.github.com/users/Vygovsky/received_events","type":"User","site_admin":false},"repo":{"id":113492942,"node_id":"MDEwOlJlcG9zaXRvcnkxMTM0OTI5NDI=","name":"employee_db","full_name":"Vygovsky/employee_db","owner":{"login":"Vygovsky","id":28059881,"node_id":"MDQ6VXNlcjI4MDU5ODgx","avatar_url":"https://avatars0.githubusercontent.com/u/28059881?v=4","gravatar_id":"","url":"https://api.github.com/users/Vygovsky","html_url":"https://github.com/Vygovsky","followers_url":"https://api.github.com/users/Vygovsky/followers","following_url":"https://api.github.com/users/Vygovsky/following{/other_user}","gists_url":"https://api.github.com/users/Vygovsky/gists{/gist_id}","starred_url":"https://api.github.com/users/Vygovsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vygovsky/subscriptions","organizations_url":"https://api.github.com/users/Vygovsky/orgs","repos_url":"https://api.github.com/users/Vygovsky/repos","events_url":"https://api.github.com/users/Vygovsky/events{/privacy}","received_events_url":"https://api.github.com/users/Vygovsky/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Vygovsky/employee_db","description":null,"fork":false,"url":"https://api.github.com/repos/Vygovsky/employee_db","forks_url":"https://api.github.com/repos/Vygovsky/employee_db/forks","keys_url":"https://api.github.com/repos/Vygovsky/employee_db/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Vygovsky/employee_db/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Vygovsky/employee_db/teams","hooks_url":"https://api.github.com/repos/Vygovsky/employee_db/hooks","issue_events_url":"https://api.github.com/repos/Vygovsky/employee_db/issues/events{/number}","events_url":"https://api.github.com/repos/Vygovsky/employee_db/events","assignees_url":"https://api.github.com/repos/Vygovsky/employee_db/assignees{/user}","branches_url":"https://api.github.com/repos/Vygovsky/employee_db/branches{/branch}","tags_url":"https://api.github.com/repos/Vygovsky/employee_db/tags","blobs_url":"https://api.github.com/repos/Vygovsky/employee_db/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Vygovsky/employee_db/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Vygovsky/employee_db/git/refs{/sha}","trees_url":"https://api.github.com/repos/Vygovsky/employee_db/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Vygovsky/employee_db/statuses/{sha}","languages_url":"https://api.github.com/repos/Vygovsky/employee_db/languages","stargazers_url":"https://api.github.com/repos/Vygovsky/employee_db/stargazers","contributors_url":"https://api.github.com/repos/Vygovsky/employee_db/contributors","subscribers_url":"https://api.github.com/repos/Vygovsky/employee_db/subscribers","subscription_url":"https://api.github.com/repos/Vygovsky/employee_db/subscription","commits_url":"https://api.github.com/repos/Vygovsky/employee_db/commits{/sha}","git_commits_url":"https://api.github.com/repos/Vygovsky/employee_db/git/commits{/sha}","comments_url":"https://api.github.com/repos/Vygovsky/employee_db/comments{/number}","issue_comment_url":"https://api.github.com/repos/Vygovsky/employee_db/issues/comments{/number}","contents_url":"https://api.github.com/repos/Vygovsky/employee_db/contents/{+path}","compare_url":"https://api.github.com/repos/Vygovsky/employee_db/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Vygovsky/employee_db/merges","archive_url":"https://api.github.com/repos/Vygovsky/employee_db/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Vygovsky/employee_db/downloads","issues_url":"https://api.github.com/repos/Vygovsky/employee_db/issues{/number}","pulls_url":"https://api.github.com/repos/Vygovsky/employee_db/pulls{/number}","milestones_url":"https://api.github.com/repos/Vygovsky/employee_db/milestones{/number}","notifications_url":"https://api.github.com/repos/Vygovsky/employee_db/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Vygovsky/employee_db/labels{/name}","releases_url":"https://api.github.com/repos/Vygovsky/employee_db/releases{/id}","deployments_url":"https://api.github.com/repos/Vygovsky/employee_db/deployments","created_at":"2017-12-07T19:59:08Z","updated_at":"2018-06-12T13:25:59Z","pushed_at":"2018-06-12T13:25:57Z","git_url":"git://github.com/Vygovsky/employee_db.git","ssh_url":"git@github.com:Vygovsky/employee_db.git","clone_url":"https://github.com/Vygovsky/employee_db.git","svn_url":"https://github.com/Vygovsky/employee_db","homepage":null,"size":1727,"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":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Vygovsky:master","ref":"master","sha":"ac7b02d36f95f7537288c54ae9bebc777ae10671","user":{"login":"Vygovsky","id":28059881,"node_id":"MDQ6VXNlcjI4MDU5ODgx","avatar_url":"https://avatars0.githubusercontent.com/u/28059881?v=4","gravatar_id":"","url":"https://api.github.com/users/Vygovsky","html_url":"https://github.com/Vygovsky","followers_url":"https://api.github.com/users/Vygovsky/followers","following_url":"https://api.github.com/users/Vygovsky/following{/other_user}","gists_url":"https://api.github.com/users/Vygovsky/gists{/gist_id}","starred_url":"https://api.github.com/users/Vygovsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vygovsky/subscriptions","organizations_url":"https://api.github.com/users/Vygovsky/orgs","repos_url":"https://api.github.com/users/Vygovsky/repos","events_url":"https://api.github.com/users/Vygovsky/events{/privacy}","received_events_url":"https://api.github.com/users/Vygovsky/received_events","type":"User","site_admin":false},"repo":{"id":113492942,"node_id":"MDEwOlJlcG9zaXRvcnkxMTM0OTI5NDI=","name":"employee_db","full_name":"Vygovsky/employee_db","owner":{"login":"Vygovsky","id":28059881,"node_id":"MDQ6VXNlcjI4MDU5ODgx","avatar_url":"https://avatars0.githubusercontent.com/u/28059881?v=4","gravatar_id":"","url":"https://api.github.com/users/Vygovsky","html_url":"https://github.com/Vygovsky","followers_url":"https://api.github.com/users/Vygovsky/followers","following_url":"https://api.github.com/users/Vygovsky/following{/other_user}","gists_url":"https://api.github.com/users/Vygovsky/gists{/gist_id}","starred_url":"https://api.github.com/users/Vygovsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vygovsky/subscriptions","organizations_url":"https://api.github.com/users/Vygovsky/orgs","repos_url":"https://api.github.com/users/Vygovsky/repos","events_url":"https://api.github.com/users/Vygovsky/events{/privacy}","received_events_url":"https://api.github.com/users/Vygovsky/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Vygovsky/employee_db","description":null,"fork":false,"url":"https://api.github.com/repos/Vygovsky/employee_db","forks_url":"https://api.github.com/repos/Vygovsky/employee_db/forks","keys_url":"https://api.github.com/repos/Vygovsky/employee_db/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Vygovsky/employee_db/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Vygovsky/employee_db/teams","hooks_url":"https://api.github.com/repos/Vygovsky/employee_db/hooks","issue_events_url":"https://api.github.com/repos/Vygovsky/employee_db/issues/events{/number}","events_url":"https://api.github.com/repos/Vygovsky/employee_db/events","assignees_url":"https://api.github.com/repos/Vygovsky/employee_db/assignees{/user}","branches_url":"https://api.github.com/repos/Vygovsky/employee_db/branches{/branch}","tags_url":"https://api.github.com/repos/Vygovsky/employee_db/tags","blobs_url":"https://api.github.com/repos/Vygovsky/employee_db/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Vygovsky/employee_db/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Vygovsky/employee_db/git/refs{/sha}","trees_url":"https://api.github.com/repos/Vygovsky/employee_db/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Vygovsky/employee_db/statuses/{sha}","languages_url":"https://api.github.com/repos/Vygovsky/employee_db/languages","stargazers_url":"https://api.github.com/repos/Vygovsky/employee_db/stargazers","contributors_url":"https://api.github.com/repos/Vygovsky/employee_db/contributors","subscribers_url":"https://api.github.com/repos/Vygovsky/employee_db/subscribers","subscription_url":"https://api.github.com/repos/Vygovsky/employee_db/subscription","commits_url":"https://api.github.com/repos/Vygovsky/employee_db/commits{/sha}","git_commits_url":"https://api.github.com/repos/Vygovsky/employee_db/git/commits{/sha}","comments_url":"https://api.github.com/repos/Vygovsky/employee_db/comments{/number}","issue_comment_url":"https://api.github.com/repos/Vygovsky/employee_db/issues/comments{/number}","contents_url":"https://api.github.com/repos/Vygovsky/employee_db/contents/{+path}","compare_url":"https://api.github.com/repos/Vygovsky/employee_db/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Vygovsky/employee_db/merges","archive_url":"https://api.github.com/repos/Vygovsky/employee_db/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Vygovsky/employee_db/downloads","issues_url":"https://api.github.com/repos/Vygovsky/employee_db/issues{/number}","pulls_url":"https://api.github.com/repos/Vygovsky/employee_db/pulls{/number}","milestones_url":"https://api.github.com/repos/Vygovsky/employee_db/milestones{/number}","notifications_url":"https://api.github.com/repos/Vygovsky/employee_db/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Vygovsky/employee_db/labels{/name}","releases_url":"https://api.github.com/repos/Vygovsky/employee_db/releases{/id}","deployments_url":"https://api.github.com/repos/Vygovsky/employee_db/deployments","created_at":"2017-12-07T19:59:08Z","updated_at":"2018-06-12T13:25:59Z","pushed_at":"2018-06-12T13:25:57Z","git_url":"git://github.com/Vygovsky/employee_db.git","ssh_url":"git@github.com:Vygovsky/employee_db.git","clone_url":"https://github.com/Vygovsky/employee_db.git","svn_url":"https://github.com/Vygovsky/employee_db","homepage":null,"size":1727,"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":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Vygovsky/employee_db/pulls/5"},"html":{"href":"https://github.com/Vygovsky/employee_db/pull/5"},"issue":{"href":"https://api.github.com/repos/Vygovsky/employee_db/issues/5"},"comments":{"href":"https://api.github.com/repos/Vygovsky/employee_db/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/Vygovsky/employee_db/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/Vygovsky/employee_db/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Vygovsky/employee_db/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/Vygovsky/employee_db/statuses/a316ac22fea32f3b1e6105dd33383fdf1bc6f4ea"}},"author_association":"OWNER"}}
{"actor":{"display_login":"petrykin"}}