{"action":"created","comment":{"url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/pulls/comments/67609791","id":67609791,"diff_hunk":"@@ -0,0 +1,50 @@\n+package com.g1.utils;\n+\n+import java.util.ArrayList;\n+import java.util.List;\n+import java.util.Set;\n+\n+import com.g1.web.dto.CharacterDTO;\n+import com.g1.web.dto.GroupDTO;\n+import com.g1.web.model.Group;\n+import com.g1.web.model.Character;\n+//sirve para devolver el minimo json\n+public class ToDTO {\n+\t\n+\tpublic static GroupDTO convertGroup(Group g){\n+\t\tGroupDTO gDTO = new GroupDTO();\n+\t\tgDTO.setId(g.getId());\n+\t\tgDTO.setName(g.getName());\n+\t\tgDTO.setCharacters(convertCharacters(g.getCharacters()));\n+\t\treturn gDTO;\n+\t}\n+\t\n+\tpublic static List<GroupDTO> convertGroups(List<Group> gs){\n+\t\tList<GroupDTO> gDTOs = new ArrayList<GroupDTO>();\n+\t\tfor(Group g : gs){\t\t\t\n+\t\t\tGroupDTO gDTO = new GroupDTO();","path":"src/main/java/com/g1/utils/ToDTO.java","position":25,"original_position":25,"commit_id":"2d9968ad036eea19f47c729218701c196d822bd8","original_commit_id":"2d9968ad036eea19f47c729218701c196d822bd8","user":{"login":"jlavera","id":2030265,"avatar_url":"https://avatars.githubusercontent.com/u/2030265?v=3","gravatar_id":"","url":"https://api.github.com/users/jlavera","html_url":"https://github.com/jlavera","followers_url":"https://api.github.com/users/jlavera/followers","following_url":"https://api.github.com/users/jlavera/following{/other_user}","gists_url":"https://api.github.com/users/jlavera/gists{/gist_id}","starred_url":"https://api.github.com/users/jlavera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlavera/subscriptions","organizations_url":"https://api.github.com/users/jlavera/orgs","repos_url":"https://api.github.com/users/jlavera/repos","events_url":"https://api.github.com/users/jlavera/events{/privacy}","received_events_url":"https://api.github.com/users/jlavera/received_events","type":"User","site_admin":false},"body":"Esto podría ser un map del `convertGroup` definido arriba.","created_at":"2016-06-19T03:44:53Z","updated_at":"2016-06-19T03:44:53Z","html_url":"https://github.com/jlavera/TPTACS2016C1G1/pull/12#discussion_r67609791","pull_request_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/pulls/comments/67609791"},"html":{"href":"https://github.com/jlavera/TPTACS2016C1G1/pull/12#discussion_r67609791"},"pull_request":{"href":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/pulls/12","id":74292983,"html_url":"https://github.com/jlavera/TPTACS2016C1G1/pull/12","diff_url":"https://github.com/jlavera/TPTACS2016C1G1/pull/12.diff","patch_url":"https://github.com/jlavera/TPTACS2016C1G1/pull/12.patch","issue_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/issues/12","number":12,"state":"open","locked":false,"title":"Data base","user":{"login":"breuer","id":1688386,"avatar_url":"https://avatars.githubusercontent.com/u/1688386?v=3","gravatar_id":"","url":"https://api.github.com/users/breuer","html_url":"https://github.com/breuer","followers_url":"https://api.github.com/users/breuer/followers","following_url":"https://api.github.com/users/breuer/following{/other_user}","gists_url":"https://api.github.com/users/breuer/gists{/gist_id}","starred_url":"https://api.github.com/users/breuer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/breuer/subscriptions","organizations_url":"https://api.github.com/users/breuer/orgs","repos_url":"https://api.github.com/users/breuer/repos","events_url":"https://api.github.com/users/breuer/events{/privacy}","received_events_url":"https://api.github.com/users/breuer/received_events","type":"User","site_admin":false},"body":"Esta versión de la base estaría para mergear con el master.\r\nEsta probado con todos los users Stories.\r\n","created_at":"2016-06-17T19:26:26Z","updated_at":"2016-06-19T03:44:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fcda0f923c9c13278ac4512348f5bbaa6462a2cc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/pulls/12/commits","review_comments_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/pulls/12/comments","review_comment_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/issues/12/comments","statuses_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/statuses/2d9968ad036eea19f47c729218701c196d822bd8","head":{"label":"jlavera:data_base","ref":"data_base","sha":"2d9968ad036eea19f47c729218701c196d822bd8","user":{"login":"jlavera","id":2030265,"avatar_url":"https://avatars.githubusercontent.com/u/2030265?v=3","gravatar_id":"","url":"https://api.github.com/users/jlavera","html_url":"https://github.com/jlavera","followers_url":"https://api.github.com/users/jlavera/followers","following_url":"https://api.github.com/users/jlavera/following{/other_user}","gists_url":"https://api.github.com/users/jlavera/gists{/gist_id}","starred_url":"https://api.github.com/users/jlavera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlavera/subscriptions","organizations_url":"https://api.github.com/users/jlavera/orgs","repos_url":"https://api.github.com/users/jlavera/repos","events_url":"https://api.github.com/users/jlavera/events{/privacy}","received_events_url":"https://api.github.com/users/jlavera/received_events","type":"User","site_admin":false},"repo":{"id":55031785,"name":"TPTACS2016C1G1","full_name":"jlavera/TPTACS2016C1G1","owner":{"login":"jlavera","id":2030265,"avatar_url":"https://avatars.githubusercontent.com/u/2030265?v=3","gravatar_id":"","url":"https://api.github.com/users/jlavera","html_url":"https://github.com/jlavera","followers_url":"https://api.github.com/users/jlavera/followers","following_url":"https://api.github.com/users/jlavera/following{/other_user}","gists_url":"https://api.github.com/users/jlavera/gists{/gist_id}","starred_url":"https://api.github.com/users/jlavera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlavera/subscriptions","organizations_url":"https://api.github.com/users/jlavera/orgs","repos_url":"https://api.github.com/users/jlavera/repos","events_url":"https://api.github.com/users/jlavera/events{/privacy}","received_events_url":"https://api.github.com/users/jlavera/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jlavera/TPTACS2016C1G1","description":"","fork":false,"url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1","forks_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/forks","keys_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/teams","hooks_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/hooks","issue_events_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/issues/events{/number}","events_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/events","assignees_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/assignees{/user}","branches_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/branches{/branch}","tags_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/tags","blobs_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/git/refs{/sha}","trees_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/statuses/{sha}","languages_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/languages","stargazers_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/stargazers","contributors_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/contributors","subscribers_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/subscribers","subscription_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/subscription","commits_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/commits{/sha}","git_commits_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/git/commits{/sha}","comments_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/comments{/number}","issue_comment_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/issues/comments{/number}","contents_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/contents/{+path}","compare_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/merges","archive_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/downloads","issues_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/issues{/number}","pulls_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/pulls{/number}","milestones_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/milestones{/number}","notifications_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/labels{/name}","releases_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/releases{/id}","deployments_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/deployments","created_at":"2016-03-30T04:12:29Z","updated_at":"2016-05-02T22:50:34Z","pushed_at":"2016-06-19T01:52:00Z","git_url":"git://github.com/jlavera/TPTACS2016C1G1.git","ssh_url":"git@github.com:jlavera/TPTACS2016C1G1.git","clone_url":"https://github.com/jlavera/TPTACS2016C1G1.git","svn_url":"https://github.com/jlavera/TPTACS2016C1G1","homepage":null,"size":4332,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"jlavera:master","ref":"master","sha":"bdaa0074f6efc3c8b09c05db8828d0a68287ff50","user":{"login":"jlavera","id":2030265,"avatar_url":"https://avatars.githubusercontent.com/u/2030265?v=3","gravatar_id":"","url":"https://api.github.com/users/jlavera","html_url":"https://github.com/jlavera","followers_url":"https://api.github.com/users/jlavera/followers","following_url":"https://api.github.com/users/jlavera/following{/other_user}","gists_url":"https://api.github.com/users/jlavera/gists{/gist_id}","starred_url":"https://api.github.com/users/jlavera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlavera/subscriptions","organizations_url":"https://api.github.com/users/jlavera/orgs","repos_url":"https://api.github.com/users/jlavera/repos","events_url":"https://api.github.com/users/jlavera/events{/privacy}","received_events_url":"https://api.github.com/users/jlavera/received_events","type":"User","site_admin":false},"repo":{"id":55031785,"name":"TPTACS2016C1G1","full_name":"jlavera/TPTACS2016C1G1","owner":{"login":"jlavera","id":2030265,"avatar_url":"https://avatars.githubusercontent.com/u/2030265?v=3","gravatar_id":"","url":"https://api.github.com/users/jlavera","html_url":"https://github.com/jlavera","followers_url":"https://api.github.com/users/jlavera/followers","following_url":"https://api.github.com/users/jlavera/following{/other_user}","gists_url":"https://api.github.com/users/jlavera/gists{/gist_id}","starred_url":"https://api.github.com/users/jlavera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlavera/subscriptions","organizations_url":"https://api.github.com/users/jlavera/orgs","repos_url":"https://api.github.com/users/jlavera/repos","events_url":"https://api.github.com/users/jlavera/events{/privacy}","received_events_url":"https://api.github.com/users/jlavera/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jlavera/TPTACS2016C1G1","description":"","fork":false,"url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1","forks_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/forks","keys_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/teams","hooks_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/hooks","issue_events_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/issues/events{/number}","events_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/events","assignees_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/assignees{/user}","branches_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/branches{/branch}","tags_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/tags","blobs_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/git/refs{/sha}","trees_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/statuses/{sha}","languages_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/languages","stargazers_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/stargazers","contributors_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/contributors","subscribers_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/subscribers","subscription_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/subscription","commits_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/commits{/sha}","git_commits_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/git/commits{/sha}","comments_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/comments{/number}","issue_comment_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/issues/comments{/number}","contents_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/contents/{+path}","compare_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/merges","archive_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/downloads","issues_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/issues{/number}","pulls_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/pulls{/number}","milestones_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/milestones{/number}","notifications_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/labels{/name}","releases_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/releases{/id}","deployments_url":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/deployments","created_at":"2016-03-30T04:12:29Z","updated_at":"2016-05-02T22:50:34Z","pushed_at":"2016-06-19T01:52:00Z","git_url":"git://github.com/jlavera/TPTACS2016C1G1.git","ssh_url":"git@github.com:jlavera/TPTACS2016C1G1.git","clone_url":"https://github.com/jlavera/TPTACS2016C1G1.git","svn_url":"https://github.com/jlavera/TPTACS2016C1G1","homepage":null,"size":4332,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/pulls/12"},"html":{"href":"https://github.com/jlavera/TPTACS2016C1G1/pull/12"},"issue":{"href":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/issues/12"},"comments":{"href":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/jlavera/TPTACS2016C1G1/statuses/2d9968ad036eea19f47c729218701c196d822bd8"}}}}
{"actor":{"display_login":"jlavera"}}