{"action":"created","comment":{"url":"https://api.github.com/repos/belluccifranco/sic-api/pulls/comments/83775812","pull_request_review_id":4589920,"id":83775812,"diff_hunk":"@@ -27,7 +28,11 @@ public MedidaServiceImpl(IMedidaRepository medidaRepository) {\n \n     @Override\n     public Medida getMedidaPorId(Long id_Medida) {\n-        return medidaRepository.getMedidaPorId(id_Medida);\n+        Medida medida = medidaRepository.getMedidaPorId(id_Medida);\n+        if (medida == null) {\n+            throw new EntityNotFoundException(ResourceBundle.getBundle(\"Mensajes\").getString(\"mensaje_medida_no_existente\"));","path":"src/main/java/sic/service/impl/MedidaServiceImpl.java","position":15,"original_position":15,"commit_id":"c5c5ace93c7e380eba9ad485134375a05ffd2b4c","original_commit_id":"c5c5ace93c7e380eba9ad485134375a05ffd2b4c","user":{"login":"belluccifranco","id":1295105,"avatar_url":"https://avatars.githubusercontent.com/u/1295105?v=3","gravatar_id":"","url":"https://api.github.com/users/belluccifranco","html_url":"https://github.com/belluccifranco","followers_url":"https://api.github.com/users/belluccifranco/followers","following_url":"https://api.github.com/users/belluccifranco/following{/other_user}","gists_url":"https://api.github.com/users/belluccifranco/gists{/gist_id}","starred_url":"https://api.github.com/users/belluccifranco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/belluccifranco/subscriptions","organizations_url":"https://api.github.com/users/belluccifranco/orgs","repos_url":"https://api.github.com/users/belluccifranco/repos","events_url":"https://api.github.com/users/belluccifranco/events{/privacy}","received_events_url":"https://api.github.com/users/belluccifranco/received_events","type":"User","site_admin":false},"body":"@k31kur0n0 Agregar salto de linea","created_at":"2016-10-18T03:23:11Z","updated_at":"2016-10-18T03:23:11Z","html_url":"https://github.com/belluccifranco/sic-api/pull/205#discussion_r83775812","pull_request_url":"https://api.github.com/repos/belluccifranco/sic-api/pulls/205","_links":{"self":{"href":"https://api.github.com/repos/belluccifranco/sic-api/pulls/comments/83775812"},"html":{"href":"https://github.com/belluccifranco/sic-api/pull/205#discussion_r83775812"},"pull_request":{"href":"https://api.github.com/repos/belluccifranco/sic-api/pulls/205"}}},"pull_request":{"url":"https://api.github.com/repos/belluccifranco/sic-api/pulls/205","id":89673860,"html_url":"https://github.com/belluccifranco/sic-api/pull/205","diff_url":"https://github.com/belluccifranco/sic-api/pull/205.diff","patch_url":"https://github.com/belluccifranco/sic-api/pull/205.patch","issue_url":"https://api.github.com/repos/belluccifranco/sic-api/issues/205","number":205,"state":"open","locked":false,"title":"204 correcciones segun reglas de negocio.","user":{"login":"k31kur0n0","id":12677079,"avatar_url":"https://avatars.githubusercontent.com/u/12677079?v=3","gravatar_id":"","url":"https://api.github.com/users/k31kur0n0","html_url":"https://github.com/k31kur0n0","followers_url":"https://api.github.com/users/k31kur0n0/followers","following_url":"https://api.github.com/users/k31kur0n0/following{/other_user}","gists_url":"https://api.github.com/users/k31kur0n0/gists{/gist_id}","starred_url":"https://api.github.com/users/k31kur0n0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k31kur0n0/subscriptions","organizations_url":"https://api.github.com/users/k31kur0n0/orgs","repos_url":"https://api.github.com/users/k31kur0n0/repos","events_url":"https://api.github.com/users/k31kur0n0/events{/privacy}","received_events_url":"https://api.github.com/users/k31kur0n0/received_events","type":"User","site_admin":false},"body":"Verifica que el estado del pedido a modificar o alta se encuentren en la enum.\r\nSet clientes predeterminado recibe solo un id\r\nCorta el json para que no devuelva el pass y permisosAdmin de Usuario\r\nEn los delete, lanza un msj si no se eucuentra la entity por ese id, usa la nueva exception EntityNotFoundException.\r\nPermite abrir solo una caja por día.\r\nSe pueden dar de alta solo una forma de pago predeterminada.\r\nSe pueden dar de alta solo un cliente predeterminado.\r\nEl código en producto y proveedor puede no estar declarado en el Json.\r\nLos códigos no admiten duplicados.\r\nEn las criterias que se busca por país, provincia y localidad, se considera la posibilidad de un id distinto de null, que no exista realmente, y lanza un EntityNotFoundException.\r\n\r\n","created_at":"2016-10-17T18:11:25Z","updated_at":"2016-10-18T03:50:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e3dad11cf5acad542bf6eb958a9a8374cf6255a9","assignee":{"login":"belluccifranco","id":1295105,"avatar_url":"https://avatars.githubusercontent.com/u/1295105?v=3","gravatar_id":"","url":"https://api.github.com/users/belluccifranco","html_url":"https://github.com/belluccifranco","followers_url":"https://api.github.com/users/belluccifranco/followers","following_url":"https://api.github.com/users/belluccifranco/following{/other_user}","gists_url":"https://api.github.com/users/belluccifranco/gists{/gist_id}","starred_url":"https://api.github.com/users/belluccifranco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/belluccifranco/subscriptions","organizations_url":"https://api.github.com/users/belluccifranco/orgs","repos_url":"https://api.github.com/users/belluccifranco/repos","events_url":"https://api.github.com/users/belluccifranco/events{/privacy}","received_events_url":"https://api.github.com/users/belluccifranco/received_events","type":"User","site_admin":false},"assignees":[{"login":"belluccifranco","id":1295105,"avatar_url":"https://avatars.githubusercontent.com/u/1295105?v=3","gravatar_id":"","url":"https://api.github.com/users/belluccifranco","html_url":"https://github.com/belluccifranco","followers_url":"https://api.github.com/users/belluccifranco/followers","following_url":"https://api.github.com/users/belluccifranco/following{/other_user}","gists_url":"https://api.github.com/users/belluccifranco/gists{/gist_id}","starred_url":"https://api.github.com/users/belluccifranco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/belluccifranco/subscriptions","organizations_url":"https://api.github.com/users/belluccifranco/orgs","repos_url":"https://api.github.com/users/belluccifranco/repos","events_url":"https://api.github.com/users/belluccifranco/events{/privacy}","received_events_url":"https://api.github.com/users/belluccifranco/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/belluccifranco/sic-api/pulls/205/commits","review_comments_url":"https://api.github.com/repos/belluccifranco/sic-api/pulls/205/comments","review_comment_url":"https://api.github.com/repos/belluccifranco/sic-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/belluccifranco/sic-api/issues/205/comments","statuses_url":"https://api.github.com/repos/belluccifranco/sic-api/statuses/c5c5ace93c7e380eba9ad485134375a05ffd2b4c","head":{"label":"belluccifranco:204CorreccionesSegunReglasDeNegocio","ref":"204CorreccionesSegunReglasDeNegocio","sha":"c5c5ace93c7e380eba9ad485134375a05ffd2b4c","user":{"login":"belluccifranco","id":1295105,"avatar_url":"https://avatars.githubusercontent.com/u/1295105?v=3","gravatar_id":"","url":"https://api.github.com/users/belluccifranco","html_url":"https://github.com/belluccifranco","followers_url":"https://api.github.com/users/belluccifranco/followers","following_url":"https://api.github.com/users/belluccifranco/following{/other_user}","gists_url":"https://api.github.com/users/belluccifranco/gists{/gist_id}","starred_url":"https://api.github.com/users/belluccifranco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/belluccifranco/subscriptions","organizations_url":"https://api.github.com/users/belluccifranco/orgs","repos_url":"https://api.github.com/users/belluccifranco/repos","events_url":"https://api.github.com/users/belluccifranco/events{/privacy}","received_events_url":"https://api.github.com/users/belluccifranco/received_events","type":"User","site_admin":false},"repo":{"id":19440641,"name":"sic-api","full_name":"belluccifranco/sic-api","owner":{"login":"belluccifranco","id":1295105,"avatar_url":"https://avatars.githubusercontent.com/u/1295105?v=3","gravatar_id":"","url":"https://api.github.com/users/belluccifranco","html_url":"https://github.com/belluccifranco","followers_url":"https://api.github.com/users/belluccifranco/followers","following_url":"https://api.github.com/users/belluccifranco/following{/other_user}","gists_url":"https://api.github.com/users/belluccifranco/gists{/gist_id}","starred_url":"https://api.github.com/users/belluccifranco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/belluccifranco/subscriptions","organizations_url":"https://api.github.com/users/belluccifranco/orgs","repos_url":"https://api.github.com/users/belluccifranco/repos","events_url":"https://api.github.com/users/belluccifranco/events{/privacy}","received_events_url":"https://api.github.com/users/belluccifranco/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/belluccifranco/sic-api","description":null,"fork":false,"url":"https://api.github.com/repos/belluccifranco/sic-api","forks_url":"https://api.github.com/repos/belluccifranco/sic-api/forks","keys_url":"https://api.github.com/repos/belluccifranco/sic-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/belluccifranco/sic-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/belluccifranco/sic-api/teams","hooks_url":"https://api.github.com/repos/belluccifranco/sic-api/hooks","issue_events_url":"https://api.github.com/repos/belluccifranco/sic-api/issues/events{/number}","events_url":"https://api.github.com/repos/belluccifranco/sic-api/events","assignees_url":"https://api.github.com/repos/belluccifranco/sic-api/assignees{/user}","branches_url":"https://api.github.com/repos/belluccifranco/sic-api/branches{/branch}","tags_url":"https://api.github.com/repos/belluccifranco/sic-api/tags","blobs_url":"https://api.github.com/repos/belluccifranco/sic-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/belluccifranco/sic-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/belluccifranco/sic-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/belluccifranco/sic-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/belluccifranco/sic-api/statuses/{sha}","languages_url":"https://api.github.com/repos/belluccifranco/sic-api/languages","stargazers_url":"https://api.github.com/repos/belluccifranco/sic-api/stargazers","contributors_url":"https://api.github.com/repos/belluccifranco/sic-api/contributors","subscribers_url":"https://api.github.com/repos/belluccifranco/sic-api/subscribers","subscription_url":"https://api.github.com/repos/belluccifranco/sic-api/subscription","commits_url":"https://api.github.com/repos/belluccifranco/sic-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/belluccifranco/sic-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/belluccifranco/sic-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/belluccifranco/sic-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/belluccifranco/sic-api/contents/{+path}","compare_url":"https://api.github.com/repos/belluccifranco/sic-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/belluccifranco/sic-api/merges","archive_url":"https://api.github.com/repos/belluccifranco/sic-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/belluccifranco/sic-api/downloads","issues_url":"https://api.github.com/repos/belluccifranco/sic-api/issues{/number}","pulls_url":"https://api.github.com/repos/belluccifranco/sic-api/pulls{/number}","milestones_url":"https://api.github.com/repos/belluccifranco/sic-api/milestones{/number}","notifications_url":"https://api.github.com/repos/belluccifranco/sic-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/belluccifranco/sic-api/labels{/name}","releases_url":"https://api.github.com/repos/belluccifranco/sic-api/releases{/id}","deployments_url":"https://api.github.com/repos/belluccifranco/sic-api/deployments","created_at":"2014-05-05T01:41:25Z","updated_at":"2016-10-10T22:46:53Z","pushed_at":"2016-10-17T18:11:25Z","git_url":"git://github.com/belluccifranco/sic-api.git","ssh_url":"git@github.com:belluccifranco/sic-api.git","clone_url":"https://github.com/belluccifranco/sic-api.git","svn_url":"https://github.com/belluccifranco/sic-api","homepage":"","size":23167,"stargazers_count":6,"watchers_count":6,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":28,"forks":3,"open_issues":28,"watchers":6,"default_branch":"master"}},"base":{"label":"belluccifranco:api","ref":"api","sha":"444249007cc770021bb513747610f8d0613d72f8","user":{"login":"belluccifranco","id":1295105,"avatar_url":"https://avatars.githubusercontent.com/u/1295105?v=3","gravatar_id":"","url":"https://api.github.com/users/belluccifranco","html_url":"https://github.com/belluccifranco","followers_url":"https://api.github.com/users/belluccifranco/followers","following_url":"https://api.github.com/users/belluccifranco/following{/other_user}","gists_url":"https://api.github.com/users/belluccifranco/gists{/gist_id}","starred_url":"https://api.github.com/users/belluccifranco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/belluccifranco/subscriptions","organizations_url":"https://api.github.com/users/belluccifranco/orgs","repos_url":"https://api.github.com/users/belluccifranco/repos","events_url":"https://api.github.com/users/belluccifranco/events{/privacy}","received_events_url":"https://api.github.com/users/belluccifranco/received_events","type":"User","site_admin":false},"repo":{"id":19440641,"name":"sic-api","full_name":"belluccifranco/sic-api","owner":{"login":"belluccifranco","id":1295105,"avatar_url":"https://avatars.githubusercontent.com/u/1295105?v=3","gravatar_id":"","url":"https://api.github.com/users/belluccifranco","html_url":"https://github.com/belluccifranco","followers_url":"https://api.github.com/users/belluccifranco/followers","following_url":"https://api.github.com/users/belluccifranco/following{/other_user}","gists_url":"https://api.github.com/users/belluccifranco/gists{/gist_id}","starred_url":"https://api.github.com/users/belluccifranco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/belluccifranco/subscriptions","organizations_url":"https://api.github.com/users/belluccifranco/orgs","repos_url":"https://api.github.com/users/belluccifranco/repos","events_url":"https://api.github.com/users/belluccifranco/events{/privacy}","received_events_url":"https://api.github.com/users/belluccifranco/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/belluccifranco/sic-api","description":null,"fork":false,"url":"https://api.github.com/repos/belluccifranco/sic-api","forks_url":"https://api.github.com/repos/belluccifranco/sic-api/forks","keys_url":"https://api.github.com/repos/belluccifranco/sic-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/belluccifranco/sic-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/belluccifranco/sic-api/teams","hooks_url":"https://api.github.com/repos/belluccifranco/sic-api/hooks","issue_events_url":"https://api.github.com/repos/belluccifranco/sic-api/issues/events{/number}","events_url":"https://api.github.com/repos/belluccifranco/sic-api/events","assignees_url":"https://api.github.com/repos/belluccifranco/sic-api/assignees{/user}","branches_url":"https://api.github.com/repos/belluccifranco/sic-api/branches{/branch}","tags_url":"https://api.github.com/repos/belluccifranco/sic-api/tags","blobs_url":"https://api.github.com/repos/belluccifranco/sic-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/belluccifranco/sic-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/belluccifranco/sic-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/belluccifranco/sic-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/belluccifranco/sic-api/statuses/{sha}","languages_url":"https://api.github.com/repos/belluccifranco/sic-api/languages","stargazers_url":"https://api.github.com/repos/belluccifranco/sic-api/stargazers","contributors_url":"https://api.github.com/repos/belluccifranco/sic-api/contributors","subscribers_url":"https://api.github.com/repos/belluccifranco/sic-api/subscribers","subscription_url":"https://api.github.com/repos/belluccifranco/sic-api/subscription","commits_url":"https://api.github.com/repos/belluccifranco/sic-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/belluccifranco/sic-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/belluccifranco/sic-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/belluccifranco/sic-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/belluccifranco/sic-api/contents/{+path}","compare_url":"https://api.github.com/repos/belluccifranco/sic-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/belluccifranco/sic-api/merges","archive_url":"https://api.github.com/repos/belluccifranco/sic-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/belluccifranco/sic-api/downloads","issues_url":"https://api.github.com/repos/belluccifranco/sic-api/issues{/number}","pulls_url":"https://api.github.com/repos/belluccifranco/sic-api/pulls{/number}","milestones_url":"https://api.github.com/repos/belluccifranco/sic-api/milestones{/number}","notifications_url":"https://api.github.com/repos/belluccifranco/sic-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/belluccifranco/sic-api/labels{/name}","releases_url":"https://api.github.com/repos/belluccifranco/sic-api/releases{/id}","deployments_url":"https://api.github.com/repos/belluccifranco/sic-api/deployments","created_at":"2014-05-05T01:41:25Z","updated_at":"2016-10-10T22:46:53Z","pushed_at":"2016-10-17T18:11:25Z","git_url":"git://github.com/belluccifranco/sic-api.git","ssh_url":"git@github.com:belluccifranco/sic-api.git","clone_url":"https://github.com/belluccifranco/sic-api.git","svn_url":"https://github.com/belluccifranco/sic-api","homepage":"","size":23167,"stargazers_count":6,"watchers_count":6,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":28,"forks":3,"open_issues":28,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/belluccifranco/sic-api/pulls/205"},"html":{"href":"https://github.com/belluccifranco/sic-api/pull/205"},"issue":{"href":"https://api.github.com/repos/belluccifranco/sic-api/issues/205"},"comments":{"href":"https://api.github.com/repos/belluccifranco/sic-api/issues/205/comments"},"review_comments":{"href":"https://api.github.com/repos/belluccifranco/sic-api/pulls/205/comments"},"review_comment":{"href":"https://api.github.com/repos/belluccifranco/sic-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/belluccifranco/sic-api/pulls/205/commits"},"statuses":{"href":"https://api.github.com/repos/belluccifranco/sic-api/statuses/c5c5ace93c7e380eba9ad485134375a05ffd2b4c"}}}}
{"actor":{"display_login":"belluccifranco"}}