{"action":"created","comment":{"url":"https://api.github.com/repos/coduno/platform/pulls/comments/45745242","id":45745242,"diff_hunk":"@@ -0,0 +1,50 @@\n+package uno.cod.platform.server.core.domain;\n+\n+import javax.persistence.*;\n+import java.util.ArrayList;\n+import java.util.Collections;\n+import java.util.List;\n+\n+@Entity\n+@Table(name = \"endpoint\")\n+public class Endpoint extends IdentifiableEntity {\n+    @Column(nullable = false)\n+    private String name;\n+\n+    @Column(unique = true, nullable = false)\n+    private String component;\n+\n+    @OneToMany(mappedBy = \"endpoint\")\n+    private List<Task> tasks;\n+\n+    public String getName() {\n+        return name;\n+    }\n+\n+    public void setName(String name) {\n+        this.name = name;\n+    }\n+\n+    public String getComponent() {\n+        return component;\n+    }\n+\n+    public void setComponent(String component) {\n+        this.component = component;\n+    }\n+\n+    public List<Task> getTasks() {\n+        return Collections.unmodifiableList(tasks);\n+    }\n+\n+    public void setTasks(List<Task> tasks) {\n+        this.tasks = tasks;\n+    }\n+\n+    public void addTask(Task task) {\n+        if (tasks == null) {\n+            tasks = new ArrayList<>();\n+        }\n+        tasks.add(task);","path":"platform-server-kernel/src/main/java/uno/cod/platform/server/core/domain/Endpoint.java","position":48,"original_position":48,"commit_id":"b7daf814e59834882510829c7ea2d96d72791165","original_commit_id":"b7daf814e59834882510829c7ea2d96d72791165","user":{"login":"victorbalan","id":9076766,"avatar_url":"https://avatars.githubusercontent.com/u/9076766?v=3","gravatar_id":"","url":"https://api.github.com/users/victorbalan","html_url":"https://github.com/victorbalan","followers_url":"https://api.github.com/users/victorbalan/followers","following_url":"https://api.github.com/users/victorbalan/following{/other_user}","gists_url":"https://api.github.com/users/victorbalan/gists{/gist_id}","starred_url":"https://api.github.com/users/victorbalan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorbalan/subscriptions","organizations_url":"https://api.github.com/users/victorbalan/orgs","repos_url":"https://api.github.com/users/victorbalan/repos","events_url":"https://api.github.com/users/victorbalan/events{/privacy}","received_events_url":"https://api.github.com/users/victorbalan/received_events","type":"User","site_admin":false},"body":"i did it one level higher. i`ll add it there","created_at":"2015-11-24T14:58:36Z","updated_at":"2015-11-24T14:58:36Z","html_url":"https://github.com/coduno/platform/pull/7#discussion_r45745242","pull_request_url":"https://api.github.com/repos/coduno/platform/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/coduno/platform/pulls/comments/45745242"},"html":{"href":"https://github.com/coduno/platform/pull/7#discussion_r45745242"},"pull_request":{"href":"https://api.github.com/repos/coduno/platform/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/coduno/platform/pulls/7","id":51636740,"html_url":"https://github.com/coduno/platform/pull/7","diff_url":"https://github.com/coduno/platform/pull/7.diff","patch_url":"https://github.com/coduno/platform/pull/7.patch","issue_url":"https://api.github.com/repos/coduno/platform/issues/7","number":7,"state":"open","locked":false,"title":"Bostrap tasks and coduno organization","user":{"login":"victorbalan","id":9076766,"avatar_url":"https://avatars.githubusercontent.com/u/9076766?v=3","gravatar_id":"","url":"https://api.github.com/users/victorbalan","html_url":"https://github.com/victorbalan","followers_url":"https://api.github.com/users/victorbalan/followers","following_url":"https://api.github.com/users/victorbalan/following{/other_user}","gists_url":"https://api.github.com/users/victorbalan/gists{/gist_id}","starred_url":"https://api.github.com/users/victorbalan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorbalan/subscriptions","organizations_url":"https://api.github.com/users/victorbalan/orgs","repos_url":"https://api.github.com/users/victorbalan/repos","events_url":"https://api.github.com/users/victorbalan/events{/privacy}","received_events_url":"https://api.github.com/users/victorbalan/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-24T09:48:36Z","updated_at":"2015-11-24T14:58:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"746dd3ea95fb248f8e69bd164a450996bfdd6bbf","assignee":{"login":"Exordian","id":617244,"avatar_url":"https://avatars.githubusercontent.com/u/617244?v=3","gravatar_id":"","url":"https://api.github.com/users/Exordian","html_url":"https://github.com/Exordian","followers_url":"https://api.github.com/users/Exordian/followers","following_url":"https://api.github.com/users/Exordian/following{/other_user}","gists_url":"https://api.github.com/users/Exordian/gists{/gist_id}","starred_url":"https://api.github.com/users/Exordian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Exordian/subscriptions","organizations_url":"https://api.github.com/users/Exordian/orgs","repos_url":"https://api.github.com/users/Exordian/repos","events_url":"https://api.github.com/users/Exordian/events{/privacy}","received_events_url":"https://api.github.com/users/Exordian/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/coduno/platform/pulls/7/commits","review_comments_url":"https://api.github.com/repos/coduno/platform/pulls/7/comments","review_comment_url":"https://api.github.com/repos/coduno/platform/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coduno/platform/issues/7/comments","statuses_url":"https://api.github.com/repos/coduno/platform/statuses/b7daf814e59834882510829c7ea2d96d72791165","head":{"label":"coduno:extend-task","ref":"extend-task","sha":"b7daf814e59834882510829c7ea2d96d72791165","user":{"login":"coduno","id":7807200,"avatar_url":"https://avatars.githubusercontent.com/u/7807200?v=3","gravatar_id":"","url":"https://api.github.com/users/coduno","html_url":"https://github.com/coduno","followers_url":"https://api.github.com/users/coduno/followers","following_url":"https://api.github.com/users/coduno/following{/other_user}","gists_url":"https://api.github.com/users/coduno/gists{/gist_id}","starred_url":"https://api.github.com/users/coduno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coduno/subscriptions","organizations_url":"https://api.github.com/users/coduno/orgs","repos_url":"https://api.github.com/users/coduno/repos","events_url":"https://api.github.com/users/coduno/events{/privacy}","received_events_url":"https://api.github.com/users/coduno/received_events","type":"Organization","site_admin":false},"repo":{"id":44091733,"name":"platform","full_name":"coduno/platform","owner":{"login":"coduno","id":7807200,"avatar_url":"https://avatars.githubusercontent.com/u/7807200?v=3","gravatar_id":"","url":"https://api.github.com/users/coduno","html_url":"https://github.com/coduno","followers_url":"https://api.github.com/users/coduno/followers","following_url":"https://api.github.com/users/coduno/following{/other_user}","gists_url":"https://api.github.com/users/coduno/gists{/gist_id}","starred_url":"https://api.github.com/users/coduno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coduno/subscriptions","organizations_url":"https://api.github.com/users/coduno/orgs","repos_url":"https://api.github.com/users/coduno/repos","events_url":"https://api.github.com/users/coduno/events{/privacy}","received_events_url":"https://api.github.com/users/coduno/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coduno/platform","description":"Coduno platform backend","fork":false,"url":"https://api.github.com/repos/coduno/platform","forks_url":"https://api.github.com/repos/coduno/platform/forks","keys_url":"https://api.github.com/repos/coduno/platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coduno/platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coduno/platform/teams","hooks_url":"https://api.github.com/repos/coduno/platform/hooks","issue_events_url":"https://api.github.com/repos/coduno/platform/issues/events{/number}","events_url":"https://api.github.com/repos/coduno/platform/events","assignees_url":"https://api.github.com/repos/coduno/platform/assignees{/user}","branches_url":"https://api.github.com/repos/coduno/platform/branches{/branch}","tags_url":"https://api.github.com/repos/coduno/platform/tags","blobs_url":"https://api.github.com/repos/coduno/platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coduno/platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coduno/platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/coduno/platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coduno/platform/statuses/{sha}","languages_url":"https://api.github.com/repos/coduno/platform/languages","stargazers_url":"https://api.github.com/repos/coduno/platform/stargazers","contributors_url":"https://api.github.com/repos/coduno/platform/contributors","subscribers_url":"https://api.github.com/repos/coduno/platform/subscribers","subscription_url":"https://api.github.com/repos/coduno/platform/subscription","commits_url":"https://api.github.com/repos/coduno/platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/coduno/platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/coduno/platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/coduno/platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/coduno/platform/contents/{+path}","compare_url":"https://api.github.com/repos/coduno/platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coduno/platform/merges","archive_url":"https://api.github.com/repos/coduno/platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coduno/platform/downloads","issues_url":"https://api.github.com/repos/coduno/platform/issues{/number}","pulls_url":"https://api.github.com/repos/coduno/platform/pulls{/number}","milestones_url":"https://api.github.com/repos/coduno/platform/milestones{/number}","notifications_url":"https://api.github.com/repos/coduno/platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coduno/platform/labels{/name}","releases_url":"https://api.github.com/repos/coduno/platform/releases{/id}","created_at":"2015-10-12T07:38:10Z","updated_at":"2015-10-27T14:06:44Z","pushed_at":"2015-11-24T14:15:58Z","git_url":"git://github.com/coduno/platform.git","ssh_url":"git@github.com:coduno/platform.git","clone_url":"https://github.com/coduno/platform.git","svn_url":"https://github.com/coduno/platform","homepage":"","size":150,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":7,"forks":3,"open_issues":7,"watchers":0,"default_branch":"master"}},"base":{"label":"coduno:master","ref":"master","sha":"cd67093df9e4bec691edc6d7e5f5433ed14a2e0a","user":{"login":"coduno","id":7807200,"avatar_url":"https://avatars.githubusercontent.com/u/7807200?v=3","gravatar_id":"","url":"https://api.github.com/users/coduno","html_url":"https://github.com/coduno","followers_url":"https://api.github.com/users/coduno/followers","following_url":"https://api.github.com/users/coduno/following{/other_user}","gists_url":"https://api.github.com/users/coduno/gists{/gist_id}","starred_url":"https://api.github.com/users/coduno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coduno/subscriptions","organizations_url":"https://api.github.com/users/coduno/orgs","repos_url":"https://api.github.com/users/coduno/repos","events_url":"https://api.github.com/users/coduno/events{/privacy}","received_events_url":"https://api.github.com/users/coduno/received_events","type":"Organization","site_admin":false},"repo":{"id":44091733,"name":"platform","full_name":"coduno/platform","owner":{"login":"coduno","id":7807200,"avatar_url":"https://avatars.githubusercontent.com/u/7807200?v=3","gravatar_id":"","url":"https://api.github.com/users/coduno","html_url":"https://github.com/coduno","followers_url":"https://api.github.com/users/coduno/followers","following_url":"https://api.github.com/users/coduno/following{/other_user}","gists_url":"https://api.github.com/users/coduno/gists{/gist_id}","starred_url":"https://api.github.com/users/coduno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coduno/subscriptions","organizations_url":"https://api.github.com/users/coduno/orgs","repos_url":"https://api.github.com/users/coduno/repos","events_url":"https://api.github.com/users/coduno/events{/privacy}","received_events_url":"https://api.github.com/users/coduno/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coduno/platform","description":"Coduno platform backend","fork":false,"url":"https://api.github.com/repos/coduno/platform","forks_url":"https://api.github.com/repos/coduno/platform/forks","keys_url":"https://api.github.com/repos/coduno/platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coduno/platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coduno/platform/teams","hooks_url":"https://api.github.com/repos/coduno/platform/hooks","issue_events_url":"https://api.github.com/repos/coduno/platform/issues/events{/number}","events_url":"https://api.github.com/repos/coduno/platform/events","assignees_url":"https://api.github.com/repos/coduno/platform/assignees{/user}","branches_url":"https://api.github.com/repos/coduno/platform/branches{/branch}","tags_url":"https://api.github.com/repos/coduno/platform/tags","blobs_url":"https://api.github.com/repos/coduno/platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coduno/platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coduno/platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/coduno/platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coduno/platform/statuses/{sha}","languages_url":"https://api.github.com/repos/coduno/platform/languages","stargazers_url":"https://api.github.com/repos/coduno/platform/stargazers","contributors_url":"https://api.github.com/repos/coduno/platform/contributors","subscribers_url":"https://api.github.com/repos/coduno/platform/subscribers","subscription_url":"https://api.github.com/repos/coduno/platform/subscription","commits_url":"https://api.github.com/repos/coduno/platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/coduno/platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/coduno/platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/coduno/platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/coduno/platform/contents/{+path}","compare_url":"https://api.github.com/repos/coduno/platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coduno/platform/merges","archive_url":"https://api.github.com/repos/coduno/platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coduno/platform/downloads","issues_url":"https://api.github.com/repos/coduno/platform/issues{/number}","pulls_url":"https://api.github.com/repos/coduno/platform/pulls{/number}","milestones_url":"https://api.github.com/repos/coduno/platform/milestones{/number}","notifications_url":"https://api.github.com/repos/coduno/platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coduno/platform/labels{/name}","releases_url":"https://api.github.com/repos/coduno/platform/releases{/id}","created_at":"2015-10-12T07:38:10Z","updated_at":"2015-10-27T14:06:44Z","pushed_at":"2015-11-24T14:15:58Z","git_url":"git://github.com/coduno/platform.git","ssh_url":"git@github.com:coduno/platform.git","clone_url":"https://github.com/coduno/platform.git","svn_url":"https://github.com/coduno/platform","homepage":"","size":150,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":7,"forks":3,"open_issues":7,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/coduno/platform/pulls/7"},"html":{"href":"https://github.com/coduno/platform/pull/7"},"issue":{"href":"https://api.github.com/repos/coduno/platform/issues/7"},"comments":{"href":"https://api.github.com/repos/coduno/platform/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/coduno/platform/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/coduno/platform/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coduno/platform/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/coduno/platform/statuses/b7daf814e59834882510829c7ea2d96d72791165"}}}}