{"action":"created","comment":{"url":"https://api.github.com/repos/easygo2015/easygoapp/pulls/comments/25583503","id":25583503,"diff_hunk":"@@ -1,18 +1,24 @@\n package com.easygoapp.mvc.domain;\n \n+import org.apache.commons.lang3.builder.EqualsBuilder;\n+import org.apache.commons.lang3.builder.HashCodeBuilder;\n+import org.hibernate.annotations.GenericGenerator;\n+\n import javax.persistence.*;\n+import java.io.Serializable;\n import java.util.Collection;\n \n /**\n- * Created by Padonag on 24.02.2015.\n+ * Created by Markov on 24.02.2015.\n  */\n @Entity\n @Table(name = \"PNP\")\n-public class PassengerNodePoint {\n+public class PassengerNodePoint implements Serializable {\n \n     @Id\n-    @Column(name = \"trip_id\", nullable = false, unique = true)\n-    @GeneratedValue\n+    @Column(name = \"id\", nullable = false, unique = true)\n+    @GeneratedValue(generator = \"increment\")\n+    @GenericGenerator(name = \"increment\", strategy = \"increment\")\n     private Long id;\n     @Column(name = \"latitude\", nullable = false)","path":"src/main/java/com/easygoapp/mvc/domain/PassengerNodePoint.java","position":27,"original_position":27,"commit_id":"1cfc436a2b5d4027f9b33465058620be9d32f020","original_commit_id":"1cfc436a2b5d4027f9b33465058620be9d32f020","user":{"login":"davseitsev","id":1793410,"avatar_url":"https://avatars.githubusercontent.com/u/1793410?v=3","gravatar_id":"","url":"https://api.github.com/users/davseitsev","html_url":"https://github.com/davseitsev","followers_url":"https://api.github.com/users/davseitsev/followers","following_url":"https://api.github.com/users/davseitsev/following{/other_user}","gists_url":"https://api.github.com/users/davseitsev/gists{/gist_id}","starred_url":"https://api.github.com/users/davseitsev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davseitsev/subscriptions","organizations_url":"https://api.github.com/users/davseitsev/orgs","repos_url":"https://api.github.com/users/davseitsev/repos","events_url":"https://api.github.com/users/davseitsev/events{/privacy}","received_events_url":"https://api.github.com/users/davseitsev/received_events","type":"User","site_admin":false},"body":"Атрибут name в аннотации @Column избыточный. Избыточный код ухудшает читаемость.","created_at":"2015-03-02T08:30:53Z","updated_at":"2015-03-02T08:30:53Z","html_url":"https://github.com/easygo2015/easygoapp/pull/4#discussion_r25583503","pull_request_url":"https://api.github.com/repos/easygo2015/easygoapp/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/easygo2015/easygoapp/pulls/comments/25583503"},"html":{"href":"https://github.com/easygo2015/easygoapp/pull/4#discussion_r25583503"},"pull_request":{"href":"https://api.github.com/repos/easygo2015/easygoapp/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/easygo2015/easygoapp/pulls/4","id":30246436,"html_url":"https://github.com/easygo2015/easygoapp/pull/4","diff_url":"https://github.com/easygo2015/easygoapp/pull/4.diff","patch_url":"https://github.com/easygo2015/easygoapp/pull/4.patch","issue_url":"https://api.github.com/repos/easygo2015/easygoapp/issues/4","number":4,"state":"open","locked":false,"title":"Repository","user":{"login":"easygo2015","id":11177457,"avatar_url":"https://avatars.githubusercontent.com/u/11177457?v=3","gravatar_id":"","url":"https://api.github.com/users/easygo2015","html_url":"https://github.com/easygo2015","followers_url":"https://api.github.com/users/easygo2015/followers","following_url":"https://api.github.com/users/easygo2015/following{/other_user}","gists_url":"https://api.github.com/users/easygo2015/gists{/gist_id}","starred_url":"https://api.github.com/users/easygo2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/easygo2015/subscriptions","organizations_url":"https://api.github.com/users/easygo2015/orgs","repos_url":"https://api.github.com/users/easygo2015/repos","events_url":"https://api.github.com/users/easygo2015/events{/privacy}","received_events_url":"https://api.github.com/users/easygo2015/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-01T18:47:52Z","updated_at":"2015-03-02T08:30:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/easygo2015/easygoapp/pulls/4/commits","review_comments_url":"https://api.github.com/repos/easygo2015/easygoapp/pulls/4/comments","review_comment_url":"https://api.github.com/repos/easygo2015/easygoapp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/easygo2015/easygoapp/issues/4/comments","statuses_url":"https://api.github.com/repos/easygo2015/easygoapp/statuses/1cfc436a2b5d4027f9b33465058620be9d32f020","head":{"label":"easygo2015:repository","ref":"repository","sha":"1cfc436a2b5d4027f9b33465058620be9d32f020","user":{"login":"easygo2015","id":11177457,"avatar_url":"https://avatars.githubusercontent.com/u/11177457?v=3","gravatar_id":"","url":"https://api.github.com/users/easygo2015","html_url":"https://github.com/easygo2015","followers_url":"https://api.github.com/users/easygo2015/followers","following_url":"https://api.github.com/users/easygo2015/following{/other_user}","gists_url":"https://api.github.com/users/easygo2015/gists{/gist_id}","starred_url":"https://api.github.com/users/easygo2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/easygo2015/subscriptions","organizations_url":"https://api.github.com/users/easygo2015/orgs","repos_url":"https://api.github.com/users/easygo2015/repos","events_url":"https://api.github.com/users/easygo2015/events{/privacy}","received_events_url":"https://api.github.com/users/easygo2015/received_events","type":"User","site_admin":false},"repo":{"id":31263544,"name":"easygoapp","full_name":"easygo2015/easygoapp","owner":{"login":"easygo2015","id":11177457,"avatar_url":"https://avatars.githubusercontent.com/u/11177457?v=3","gravatar_id":"","url":"https://api.github.com/users/easygo2015","html_url":"https://github.com/easygo2015","followers_url":"https://api.github.com/users/easygo2015/followers","following_url":"https://api.github.com/users/easygo2015/following{/other_user}","gists_url":"https://api.github.com/users/easygo2015/gists{/gist_id}","starred_url":"https://api.github.com/users/easygo2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/easygo2015/subscriptions","organizations_url":"https://api.github.com/users/easygo2015/orgs","repos_url":"https://api.github.com/users/easygo2015/repos","events_url":"https://api.github.com/users/easygo2015/events{/privacy}","received_events_url":"https://api.github.com/users/easygo2015/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/easygo2015/easygoapp","description":"Web-service to find auto-companion in Dneprodzerzhinsk(Ukraine)","fork":false,"url":"https://api.github.com/repos/easygo2015/easygoapp","forks_url":"https://api.github.com/repos/easygo2015/easygoapp/forks","keys_url":"https://api.github.com/repos/easygo2015/easygoapp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/easygo2015/easygoapp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/easygo2015/easygoapp/teams","hooks_url":"https://api.github.com/repos/easygo2015/easygoapp/hooks","issue_events_url":"https://api.github.com/repos/easygo2015/easygoapp/issues/events{/number}","events_url":"https://api.github.com/repos/easygo2015/easygoapp/events","assignees_url":"https://api.github.com/repos/easygo2015/easygoapp/assignees{/user}","branches_url":"https://api.github.com/repos/easygo2015/easygoapp/branches{/branch}","tags_url":"https://api.github.com/repos/easygo2015/easygoapp/tags","blobs_url":"https://api.github.com/repos/easygo2015/easygoapp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/easygo2015/easygoapp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/easygo2015/easygoapp/git/refs{/sha}","trees_url":"https://api.github.com/repos/easygo2015/easygoapp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/easygo2015/easygoapp/statuses/{sha}","languages_url":"https://api.github.com/repos/easygo2015/easygoapp/languages","stargazers_url":"https://api.github.com/repos/easygo2015/easygoapp/stargazers","contributors_url":"https://api.github.com/repos/easygo2015/easygoapp/contributors","subscribers_url":"https://api.github.com/repos/easygo2015/easygoapp/subscribers","subscription_url":"https://api.github.com/repos/easygo2015/easygoapp/subscription","commits_url":"https://api.github.com/repos/easygo2015/easygoapp/commits{/sha}","git_commits_url":"https://api.github.com/repos/easygo2015/easygoapp/git/commits{/sha}","comments_url":"https://api.github.com/repos/easygo2015/easygoapp/comments{/number}","issue_comment_url":"https://api.github.com/repos/easygo2015/easygoapp/issues/comments{/number}","contents_url":"https://api.github.com/repos/easygo2015/easygoapp/contents/{+path}","compare_url":"https://api.github.com/repos/easygo2015/easygoapp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/easygo2015/easygoapp/merges","archive_url":"https://api.github.com/repos/easygo2015/easygoapp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/easygo2015/easygoapp/downloads","issues_url":"https://api.github.com/repos/easygo2015/easygoapp/issues{/number}","pulls_url":"https://api.github.com/repos/easygo2015/easygoapp/pulls{/number}","milestones_url":"https://api.github.com/repos/easygo2015/easygoapp/milestones{/number}","notifications_url":"https://api.github.com/repos/easygo2015/easygoapp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/easygo2015/easygoapp/labels{/name}","releases_url":"https://api.github.com/repos/easygo2015/easygoapp/releases{/id}","created_at":"2015-02-24T14:24:38Z","updated_at":"2015-03-01T14:06:02Z","pushed_at":"2015-03-02T08:22:25Z","git_url":"git://github.com/easygo2015/easygoapp.git","ssh_url":"git@github.com:easygo2015/easygoapp.git","clone_url":"https://github.com/easygo2015/easygoapp.git","svn_url":"https://github.com/easygo2015/easygoapp","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"easygo2015:develop","ref":"develop","sha":"39f7a68d52e0fe510bc3b5bd6c2c7dbe5fd2a3cd","user":{"login":"easygo2015","id":11177457,"avatar_url":"https://avatars.githubusercontent.com/u/11177457?v=3","gravatar_id":"","url":"https://api.github.com/users/easygo2015","html_url":"https://github.com/easygo2015","followers_url":"https://api.github.com/users/easygo2015/followers","following_url":"https://api.github.com/users/easygo2015/following{/other_user}","gists_url":"https://api.github.com/users/easygo2015/gists{/gist_id}","starred_url":"https://api.github.com/users/easygo2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/easygo2015/subscriptions","organizations_url":"https://api.github.com/users/easygo2015/orgs","repos_url":"https://api.github.com/users/easygo2015/repos","events_url":"https://api.github.com/users/easygo2015/events{/privacy}","received_events_url":"https://api.github.com/users/easygo2015/received_events","type":"User","site_admin":false},"repo":{"id":31263544,"name":"easygoapp","full_name":"easygo2015/easygoapp","owner":{"login":"easygo2015","id":11177457,"avatar_url":"https://avatars.githubusercontent.com/u/11177457?v=3","gravatar_id":"","url":"https://api.github.com/users/easygo2015","html_url":"https://github.com/easygo2015","followers_url":"https://api.github.com/users/easygo2015/followers","following_url":"https://api.github.com/users/easygo2015/following{/other_user}","gists_url":"https://api.github.com/users/easygo2015/gists{/gist_id}","starred_url":"https://api.github.com/users/easygo2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/easygo2015/subscriptions","organizations_url":"https://api.github.com/users/easygo2015/orgs","repos_url":"https://api.github.com/users/easygo2015/repos","events_url":"https://api.github.com/users/easygo2015/events{/privacy}","received_events_url":"https://api.github.com/users/easygo2015/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/easygo2015/easygoapp","description":"Web-service to find auto-companion in Dneprodzerzhinsk(Ukraine)","fork":false,"url":"https://api.github.com/repos/easygo2015/easygoapp","forks_url":"https://api.github.com/repos/easygo2015/easygoapp/forks","keys_url":"https://api.github.com/repos/easygo2015/easygoapp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/easygo2015/easygoapp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/easygo2015/easygoapp/teams","hooks_url":"https://api.github.com/repos/easygo2015/easygoapp/hooks","issue_events_url":"https://api.github.com/repos/easygo2015/easygoapp/issues/events{/number}","events_url":"https://api.github.com/repos/easygo2015/easygoapp/events","assignees_url":"https://api.github.com/repos/easygo2015/easygoapp/assignees{/user}","branches_url":"https://api.github.com/repos/easygo2015/easygoapp/branches{/branch}","tags_url":"https://api.github.com/repos/easygo2015/easygoapp/tags","blobs_url":"https://api.github.com/repos/easygo2015/easygoapp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/easygo2015/easygoapp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/easygo2015/easygoapp/git/refs{/sha}","trees_url":"https://api.github.com/repos/easygo2015/easygoapp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/easygo2015/easygoapp/statuses/{sha}","languages_url":"https://api.github.com/repos/easygo2015/easygoapp/languages","stargazers_url":"https://api.github.com/repos/easygo2015/easygoapp/stargazers","contributors_url":"https://api.github.com/repos/easygo2015/easygoapp/contributors","subscribers_url":"https://api.github.com/repos/easygo2015/easygoapp/subscribers","subscription_url":"https://api.github.com/repos/easygo2015/easygoapp/subscription","commits_url":"https://api.github.com/repos/easygo2015/easygoapp/commits{/sha}","git_commits_url":"https://api.github.com/repos/easygo2015/easygoapp/git/commits{/sha}","comments_url":"https://api.github.com/repos/easygo2015/easygoapp/comments{/number}","issue_comment_url":"https://api.github.com/repos/easygo2015/easygoapp/issues/comments{/number}","contents_url":"https://api.github.com/repos/easygo2015/easygoapp/contents/{+path}","compare_url":"https://api.github.com/repos/easygo2015/easygoapp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/easygo2015/easygoapp/merges","archive_url":"https://api.github.com/repos/easygo2015/easygoapp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/easygo2015/easygoapp/downloads","issues_url":"https://api.github.com/repos/easygo2015/easygoapp/issues{/number}","pulls_url":"https://api.github.com/repos/easygo2015/easygoapp/pulls{/number}","milestones_url":"https://api.github.com/repos/easygo2015/easygoapp/milestones{/number}","notifications_url":"https://api.github.com/repos/easygo2015/easygoapp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/easygo2015/easygoapp/labels{/name}","releases_url":"https://api.github.com/repos/easygo2015/easygoapp/releases{/id}","created_at":"2015-02-24T14:24:38Z","updated_at":"2015-03-01T14:06:02Z","pushed_at":"2015-03-02T08:22:25Z","git_url":"git://github.com/easygo2015/easygoapp.git","ssh_url":"git@github.com:easygo2015/easygoapp.git","clone_url":"https://github.com/easygo2015/easygoapp.git","svn_url":"https://github.com/easygo2015/easygoapp","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/easygo2015/easygoapp/pulls/4"},"html":{"href":"https://github.com/easygo2015/easygoapp/pull/4"},"issue":{"href":"https://api.github.com/repos/easygo2015/easygoapp/issues/4"},"comments":{"href":"https://api.github.com/repos/easygo2015/easygoapp/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/easygo2015/easygoapp/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/easygo2015/easygoapp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/easygo2015/easygoapp/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/easygo2015/easygoapp/statuses/1cfc436a2b5d4027f9b33465058620be9d32f020"}}}}