{"action":"created","comment":{"url":"https://api.github.com/repos/voronindev/mbraw/pulls/comments/28630815","id":28630815,"diff_hunk":"@@ -45,24 +45,34 @@ public void setDescription(String description) {\n         this.description = description;\n     }\n \n+    @ManyToOne\n+    @JoinColumn(name = \"platform_id\", referencedColumnName = \"id\")\n+    public Platform getPlatform() {\n+        return platform;\n+    }\n+\n+    public void setPlatform(Platform platform) {\n+        this.platform = platform;\n+    }\n+\n     @Override\n     public boolean equals(Object o) {\n         if (this == o) return true;\n         if (o == null || getClass() != o.getClass()) return false;\n \n-        Device that = (Device) o;\n+        Device device = (Device) o;\n \n-        if (id != that.id) return false;\n-        if (address != null ? !address.equals(that.address) : that.address != null) return false;\n-        if (description != null ? !description.equals(that.description) : that.description != null) return false;\n-        if (serial != null ? !serial.equals(that.serial) : that.serial != null) return false;\n+        if (address != null ? !address.equals(device.address) : device.address != null) return false;\n+        if (description != null ? !description.equals(device.description) : device.description != null) return false;\n+        if (id != null ? !id.equals(device.id) : device.id != null) return false;","path":"src/main/java/ru/workspace/mbraw/webapp/pojo/Device.java","position":44,"original_position":44,"commit_id":"05baab57670e63174e387955dccf9f7d13f022f9","original_commit_id":"4e8baaafbc10477b4d446bb0b0d9d1c448dbf87d","user":{"login":"voronindev","id":10127919,"avatar_url":"https://avatars.githubusercontent.com/u/10127919?v=3","gravatar_id":"","url":"https://api.github.com/users/voronindev","html_url":"https://github.com/voronindev","followers_url":"https://api.github.com/users/voronindev/followers","following_url":"https://api.github.com/users/voronindev/following{/other_user}","gists_url":"https://api.github.com/users/voronindev/gists{/gist_id}","starred_url":"https://api.github.com/users/voronindev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voronindev/subscriptions","organizations_url":"https://api.github.com/users/voronindev/orgs","repos_url":"https://api.github.com/users/voronindev/repos","events_url":"https://api.github.com/users/voronindev/events{/privacy}","received_events_url":"https://api.github.com/users/voronindev/received_events","type":"User","site_admin":false},"body":"Да перегенерил сущность. Есть проблемы, да","created_at":"2015-04-17T21:14:29Z","updated_at":"2015-04-17T21:14:29Z","html_url":"https://github.com/voronindev/mbraw/pull/2#discussion_r28630815","pull_request_url":"https://api.github.com/repos/voronindev/mbraw/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/voronindev/mbraw/pulls/comments/28630815"},"html":{"href":"https://github.com/voronindev/mbraw/pull/2#discussion_r28630815"},"pull_request":{"href":"https://api.github.com/repos/voronindev/mbraw/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/voronindev/mbraw/pulls/2","id":33540291,"html_url":"https://github.com/voronindev/mbraw/pull/2","diff_url":"https://github.com/voronindev/mbraw/pull/2.diff","patch_url":"https://github.com/voronindev/mbraw/pull/2.patch","issue_url":"https://api.github.com/repos/voronindev/mbraw/issues/2","number":2,"state":"open","locked":false,"title":"Добавлен PlatformController","user":{"login":"voronindev","id":10127919,"avatar_url":"https://avatars.githubusercontent.com/u/10127919?v=3","gravatar_id":"","url":"https://api.github.com/users/voronindev","html_url":"https://github.com/voronindev","followers_url":"https://api.github.com/users/voronindev/followers","following_url":"https://api.github.com/users/voronindev/following{/other_user}","gists_url":"https://api.github.com/users/voronindev/gists{/gist_id}","starred_url":"https://api.github.com/users/voronindev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voronindev/subscriptions","organizations_url":"https://api.github.com/users/voronindev/orgs","repos_url":"https://api.github.com/users/voronindev/repos","events_url":"https://api.github.com/users/voronindev/events{/privacy}","received_events_url":"https://api.github.com/users/voronindev/received_events","type":"User","site_admin":false},"body":"Поддерживаются:\r\n/api/platform\r\n/api/platform/{id}/devices\r\n\r\nДобавлена сущность: Platform, PlatformDto\r\nДобавлены: IPlatformDAO & PlatformDAO","created_at":"2015-04-17T12:39:39Z","updated_at":"2015-04-17T21:14:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a0a26aca535e00a87e61e09b9130524b0ba716cd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/voronindev/mbraw/pulls/2/commits","review_comments_url":"https://api.github.com/repos/voronindev/mbraw/pulls/2/comments","review_comment_url":"https://api.github.com/repos/voronindev/mbraw/pulls/comments{/number}","comments_url":"https://api.github.com/repos/voronindev/mbraw/issues/2/comments","statuses_url":"https://api.github.com/repos/voronindev/mbraw/statuses/05baab57670e63174e387955dccf9f7d13f022f9","head":{"label":"voronindev:platform","ref":"platform","sha":"05baab57670e63174e387955dccf9f7d13f022f9","user":{"login":"voronindev","id":10127919,"avatar_url":"https://avatars.githubusercontent.com/u/10127919?v=3","gravatar_id":"","url":"https://api.github.com/users/voronindev","html_url":"https://github.com/voronindev","followers_url":"https://api.github.com/users/voronindev/followers","following_url":"https://api.github.com/users/voronindev/following{/other_user}","gists_url":"https://api.github.com/users/voronindev/gists{/gist_id}","starred_url":"https://api.github.com/users/voronindev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voronindev/subscriptions","organizations_url":"https://api.github.com/users/voronindev/orgs","repos_url":"https://api.github.com/users/voronindev/repos","events_url":"https://api.github.com/users/voronindev/events{/privacy}","received_events_url":"https://api.github.com/users/voronindev/received_events","type":"User","site_admin":false},"repo":{"id":33362345,"name":"mbraw","full_name":"voronindev/mbraw","owner":{"login":"voronindev","id":10127919,"avatar_url":"https://avatars.githubusercontent.com/u/10127919?v=3","gravatar_id":"","url":"https://api.github.com/users/voronindev","html_url":"https://github.com/voronindev","followers_url":"https://api.github.com/users/voronindev/followers","following_url":"https://api.github.com/users/voronindev/following{/other_user}","gists_url":"https://api.github.com/users/voronindev/gists{/gist_id}","starred_url":"https://api.github.com/users/voronindev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voronindev/subscriptions","organizations_url":"https://api.github.com/users/voronindev/orgs","repos_url":"https://api.github.com/users/voronindev/repos","events_url":"https://api.github.com/users/voronindev/events{/privacy}","received_events_url":"https://api.github.com/users/voronindev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/voronindev/mbraw","description":"","fork":false,"url":"https://api.github.com/repos/voronindev/mbraw","forks_url":"https://api.github.com/repos/voronindev/mbraw/forks","keys_url":"https://api.github.com/repos/voronindev/mbraw/keys{/key_id}","collaborators_url":"https://api.github.com/repos/voronindev/mbraw/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/voronindev/mbraw/teams","hooks_url":"https://api.github.com/repos/voronindev/mbraw/hooks","issue_events_url":"https://api.github.com/repos/voronindev/mbraw/issues/events{/number}","events_url":"https://api.github.com/repos/voronindev/mbraw/events","assignees_url":"https://api.github.com/repos/voronindev/mbraw/assignees{/user}","branches_url":"https://api.github.com/repos/voronindev/mbraw/branches{/branch}","tags_url":"https://api.github.com/repos/voronindev/mbraw/tags","blobs_url":"https://api.github.com/repos/voronindev/mbraw/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/voronindev/mbraw/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/voronindev/mbraw/git/refs{/sha}","trees_url":"https://api.github.com/repos/voronindev/mbraw/git/trees{/sha}","statuses_url":"https://api.github.com/repos/voronindev/mbraw/statuses/{sha}","languages_url":"https://api.github.com/repos/voronindev/mbraw/languages","stargazers_url":"https://api.github.com/repos/voronindev/mbraw/stargazers","contributors_url":"https://api.github.com/repos/voronindev/mbraw/contributors","subscribers_url":"https://api.github.com/repos/voronindev/mbraw/subscribers","subscription_url":"https://api.github.com/repos/voronindev/mbraw/subscription","commits_url":"https://api.github.com/repos/voronindev/mbraw/commits{/sha}","git_commits_url":"https://api.github.com/repos/voronindev/mbraw/git/commits{/sha}","comments_url":"https://api.github.com/repos/voronindev/mbraw/comments{/number}","issue_comment_url":"https://api.github.com/repos/voronindev/mbraw/issues/comments{/number}","contents_url":"https://api.github.com/repos/voronindev/mbraw/contents/{+path}","compare_url":"https://api.github.com/repos/voronindev/mbraw/compare/{base}...{head}","merges_url":"https://api.github.com/repos/voronindev/mbraw/merges","archive_url":"https://api.github.com/repos/voronindev/mbraw/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/voronindev/mbraw/downloads","issues_url":"https://api.github.com/repos/voronindev/mbraw/issues{/number}","pulls_url":"https://api.github.com/repos/voronindev/mbraw/pulls{/number}","milestones_url":"https://api.github.com/repos/voronindev/mbraw/milestones{/number}","notifications_url":"https://api.github.com/repos/voronindev/mbraw/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/voronindev/mbraw/labels{/name}","releases_url":"https://api.github.com/repos/voronindev/mbraw/releases{/id}","created_at":"2015-04-03T12:31:12Z","updated_at":"2015-04-17T09:43:26Z","pushed_at":"2015-04-17T20:34:43Z","git_url":"git://github.com/voronindev/mbraw.git","ssh_url":"git@github.com:voronindev/mbraw.git","clone_url":"https://github.com/voronindev/mbraw.git","svn_url":"https://github.com/voronindev/mbraw","homepage":null,"size":312,"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":"voronindev:master","ref":"master","sha":"c8cc5e907dbcb7388987f598a506f71c6f8ebe57","user":{"login":"voronindev","id":10127919,"avatar_url":"https://avatars.githubusercontent.com/u/10127919?v=3","gravatar_id":"","url":"https://api.github.com/users/voronindev","html_url":"https://github.com/voronindev","followers_url":"https://api.github.com/users/voronindev/followers","following_url":"https://api.github.com/users/voronindev/following{/other_user}","gists_url":"https://api.github.com/users/voronindev/gists{/gist_id}","starred_url":"https://api.github.com/users/voronindev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voronindev/subscriptions","organizations_url":"https://api.github.com/users/voronindev/orgs","repos_url":"https://api.github.com/users/voronindev/repos","events_url":"https://api.github.com/users/voronindev/events{/privacy}","received_events_url":"https://api.github.com/users/voronindev/received_events","type":"User","site_admin":false},"repo":{"id":33362345,"name":"mbraw","full_name":"voronindev/mbraw","owner":{"login":"voronindev","id":10127919,"avatar_url":"https://avatars.githubusercontent.com/u/10127919?v=3","gravatar_id":"","url":"https://api.github.com/users/voronindev","html_url":"https://github.com/voronindev","followers_url":"https://api.github.com/users/voronindev/followers","following_url":"https://api.github.com/users/voronindev/following{/other_user}","gists_url":"https://api.github.com/users/voronindev/gists{/gist_id}","starred_url":"https://api.github.com/users/voronindev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voronindev/subscriptions","organizations_url":"https://api.github.com/users/voronindev/orgs","repos_url":"https://api.github.com/users/voronindev/repos","events_url":"https://api.github.com/users/voronindev/events{/privacy}","received_events_url":"https://api.github.com/users/voronindev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/voronindev/mbraw","description":"","fork":false,"url":"https://api.github.com/repos/voronindev/mbraw","forks_url":"https://api.github.com/repos/voronindev/mbraw/forks","keys_url":"https://api.github.com/repos/voronindev/mbraw/keys{/key_id}","collaborators_url":"https://api.github.com/repos/voronindev/mbraw/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/voronindev/mbraw/teams","hooks_url":"https://api.github.com/repos/voronindev/mbraw/hooks","issue_events_url":"https://api.github.com/repos/voronindev/mbraw/issues/events{/number}","events_url":"https://api.github.com/repos/voronindev/mbraw/events","assignees_url":"https://api.github.com/repos/voronindev/mbraw/assignees{/user}","branches_url":"https://api.github.com/repos/voronindev/mbraw/branches{/branch}","tags_url":"https://api.github.com/repos/voronindev/mbraw/tags","blobs_url":"https://api.github.com/repos/voronindev/mbraw/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/voronindev/mbraw/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/voronindev/mbraw/git/refs{/sha}","trees_url":"https://api.github.com/repos/voronindev/mbraw/git/trees{/sha}","statuses_url":"https://api.github.com/repos/voronindev/mbraw/statuses/{sha}","languages_url":"https://api.github.com/repos/voronindev/mbraw/languages","stargazers_url":"https://api.github.com/repos/voronindev/mbraw/stargazers","contributors_url":"https://api.github.com/repos/voronindev/mbraw/contributors","subscribers_url":"https://api.github.com/repos/voronindev/mbraw/subscribers","subscription_url":"https://api.github.com/repos/voronindev/mbraw/subscription","commits_url":"https://api.github.com/repos/voronindev/mbraw/commits{/sha}","git_commits_url":"https://api.github.com/repos/voronindev/mbraw/git/commits{/sha}","comments_url":"https://api.github.com/repos/voronindev/mbraw/comments{/number}","issue_comment_url":"https://api.github.com/repos/voronindev/mbraw/issues/comments{/number}","contents_url":"https://api.github.com/repos/voronindev/mbraw/contents/{+path}","compare_url":"https://api.github.com/repos/voronindev/mbraw/compare/{base}...{head}","merges_url":"https://api.github.com/repos/voronindev/mbraw/merges","archive_url":"https://api.github.com/repos/voronindev/mbraw/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/voronindev/mbraw/downloads","issues_url":"https://api.github.com/repos/voronindev/mbraw/issues{/number}","pulls_url":"https://api.github.com/repos/voronindev/mbraw/pulls{/number}","milestones_url":"https://api.github.com/repos/voronindev/mbraw/milestones{/number}","notifications_url":"https://api.github.com/repos/voronindev/mbraw/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/voronindev/mbraw/labels{/name}","releases_url":"https://api.github.com/repos/voronindev/mbraw/releases{/id}","created_at":"2015-04-03T12:31:12Z","updated_at":"2015-04-17T09:43:26Z","pushed_at":"2015-04-17T20:34:43Z","git_url":"git://github.com/voronindev/mbraw.git","ssh_url":"git@github.com:voronindev/mbraw.git","clone_url":"https://github.com/voronindev/mbraw.git","svn_url":"https://github.com/voronindev/mbraw","homepage":null,"size":312,"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/voronindev/mbraw/pulls/2"},"html":{"href":"https://github.com/voronindev/mbraw/pull/2"},"issue":{"href":"https://api.github.com/repos/voronindev/mbraw/issues/2"},"comments":{"href":"https://api.github.com/repos/voronindev/mbraw/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/voronindev/mbraw/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/voronindev/mbraw/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/voronindev/mbraw/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/voronindev/mbraw/statuses/05baab57670e63174e387955dccf9f7d13f022f9"}}}}