{"action":"created","comment":{"url":"https://api.github.com/repos/zalando-incubator/api-discovery/pulls/comments/111365289","pull_request_review_id":32605008,"id":111365289,"diff_hunk":"@@ -1,17 +1,25 @@\n package org.zalando.apidiscovery.storage.api;\n \n import java.util.List;\n+import java.util.Optional;\n \n import org.springframework.data.jpa.repository.Query;\n-import org.springframework.data.repository.CrudRepository;\n+import org.springframework.data.repository.Repository;\n import org.springframework.data.repository.query.Param;\n \n-public interface ApplicationRepository extends CrudRepository<ApplicationEntity, String> {\n+public interface ApplicationRepository extends Repository<ApplicationEntity, String> {\n \n \n     @Query(\"SELECT DISTINCT a FROM ApplicationEntity a \" +\n         \"INNER JOIN a.apiDeploymentEntities dep \" +\n         \"WHERE dep.api in (:apiEntities)\")\n     List<ApplicationEntity> findByApiIds(@Param(\"apiEntities\") List<ApiEntity> apiEntities);\n \n+    Optional<ApplicationEntity> findOne(String name);\n+\n+    void deleteAll();\n+\n+    List<ApplicationEntity> findAll();","path":"storage/src/main/java/org/zalando/apidiscovery/storage/api/ApplicationRepository.java","position":24,"original_position":24,"commit_id":"be5632a815f8742d44fe788ef52acb942f1e7705","original_commit_id":"be5632a815f8742d44fe788ef52acb942f1e7705","user":{"login":"fmueller","id":719827,"avatar_url":"https://avatars1.githubusercontent.com/u/719827?v=3","gravatar_id":"","url":"https://api.github.com/users/fmueller","html_url":"https://github.com/fmueller","followers_url":"https://api.github.com/users/fmueller/followers","following_url":"https://api.github.com/users/fmueller/following{/other_user}","gists_url":"https://api.github.com/users/fmueller/gists{/gist_id}","starred_url":"https://api.github.com/users/fmueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fmueller/subscriptions","organizations_url":"https://api.github.com/users/fmueller/orgs","repos_url":"https://api.github.com/users/fmueller/repos","events_url":"https://api.github.com/users/fmueller/events{/privacy}","received_events_url":"https://api.github.com/users/fmueller/received_events","type":"User","site_admin":false},"body":"Ah that's a cool feature, was not aware of this. 👍 ","created_at":"2017-04-13T11:18:17Z","updated_at":"2017-04-13T11:18:17Z","html_url":"https://github.com/zalando-incubator/api-discovery/pull/103#discussion_r111365289","pull_request_url":"https://api.github.com/repos/zalando-incubator/api-discovery/pulls/103","_links":{"self":{"href":"https://api.github.com/repos/zalando-incubator/api-discovery/pulls/comments/111365289"},"html":{"href":"https://github.com/zalando-incubator/api-discovery/pull/103#discussion_r111365289"},"pull_request":{"href":"https://api.github.com/repos/zalando-incubator/api-discovery/pulls/103"}}},"pull_request":{"url":"https://api.github.com/repos/zalando-incubator/api-discovery/pulls/103","id":115523929,"html_url":"https://github.com/zalando-incubator/api-discovery/pull/103","diff_url":"https://github.com/zalando-incubator/api-discovery/pull/103.diff","patch_url":"https://github.com/zalando-incubator/api-discovery/pull/103.patch","issue_url":"https://api.github.com/repos/zalando-incubator/api-discovery/issues/103","number":103,"state":"open","locked":false,"title":"Implement application endpoints","user":{"login":"maschleg","id":12848104,"avatar_url":"https://avatars0.githubusercontent.com/u/12848104?v=3","gravatar_id":"","url":"https://api.github.com/users/maschleg","html_url":"https://github.com/maschleg","followers_url":"https://api.github.com/users/maschleg/followers","following_url":"https://api.github.com/users/maschleg/following{/other_user}","gists_url":"https://api.github.com/users/maschleg/gists{/gist_id}","starred_url":"https://api.github.com/users/maschleg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maschleg/subscriptions","organizations_url":"https://api.github.com/users/maschleg/orgs","repos_url":"https://api.github.com/users/maschleg/repos","events_url":"https://api.github.com/users/maschleg/events{/privacy}","received_events_url":"https://api.github.com/users/maschleg/received_events","type":"User","site_admin":false},"body":"closes #68","created_at":"2017-04-12T11:50:04Z","updated_at":"2017-04-13T11:18:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5fb596eade8b0bc815700e6a32a59636cf7db4c8","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/zalando-incubator/api-discovery/pulls/103/commits","review_comments_url":"https://api.github.com/repos/zalando-incubator/api-discovery/pulls/103/comments","review_comment_url":"https://api.github.com/repos/zalando-incubator/api-discovery/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zalando-incubator/api-discovery/issues/103/comments","statuses_url":"https://api.github.com/repos/zalando-incubator/api-discovery/statuses/be5632a815f8742d44fe788ef52acb942f1e7705","head":{"label":"zalando-incubator:implement-application-endpoints","ref":"implement-application-endpoints","sha":"be5632a815f8742d44fe788ef52acb942f1e7705","user":{"login":"zalando-incubator","id":18533786,"avatar_url":"https://avatars0.githubusercontent.com/u/18533786?v=3","gravatar_id":"","url":"https://api.github.com/users/zalando-incubator","html_url":"https://github.com/zalando-incubator","followers_url":"https://api.github.com/users/zalando-incubator/followers","following_url":"https://api.github.com/users/zalando-incubator/following{/other_user}","gists_url":"https://api.github.com/users/zalando-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/zalando-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalando-incubator/subscriptions","organizations_url":"https://api.github.com/users/zalando-incubator/orgs","repos_url":"https://api.github.com/users/zalando-incubator/repos","events_url":"https://api.github.com/users/zalando-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/zalando-incubator/received_events","type":"Organization","site_admin":false},"repo":{"id":77901720,"name":"api-discovery","full_name":"zalando-incubator/api-discovery","owner":{"login":"zalando-incubator","id":18533786,"avatar_url":"https://avatars0.githubusercontent.com/u/18533786?v=3","gravatar_id":"","url":"https://api.github.com/users/zalando-incubator","html_url":"https://github.com/zalando-incubator","followers_url":"https://api.github.com/users/zalando-incubator/followers","following_url":"https://api.github.com/users/zalando-incubator/following{/other_user}","gists_url":"https://api.github.com/users/zalando-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/zalando-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalando-incubator/subscriptions","organizations_url":"https://api.github.com/users/zalando-incubator/orgs","repos_url":"https://api.github.com/users/zalando-incubator/repos","events_url":"https://api.github.com/users/zalando-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/zalando-incubator/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zalando-incubator/api-discovery","description":"API Discovery Solution for Microservice Architectures","fork":false,"url":"https://api.github.com/repos/zalando-incubator/api-discovery","forks_url":"https://api.github.com/repos/zalando-incubator/api-discovery/forks","keys_url":"https://api.github.com/repos/zalando-incubator/api-discovery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zalando-incubator/api-discovery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zalando-incubator/api-discovery/teams","hooks_url":"https://api.github.com/repos/zalando-incubator/api-discovery/hooks","issue_events_url":"https://api.github.com/repos/zalando-incubator/api-discovery/issues/events{/number}","events_url":"https://api.github.com/repos/zalando-incubator/api-discovery/events","assignees_url":"https://api.github.com/repos/zalando-incubator/api-discovery/assignees{/user}","branches_url":"https://api.github.com/repos/zalando-incubator/api-discovery/branches{/branch}","tags_url":"https://api.github.com/repos/zalando-incubator/api-discovery/tags","blobs_url":"https://api.github.com/repos/zalando-incubator/api-discovery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zalando-incubator/api-discovery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zalando-incubator/api-discovery/git/refs{/sha}","trees_url":"https://api.github.com/repos/zalando-incubator/api-discovery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zalando-incubator/api-discovery/statuses/{sha}","languages_url":"https://api.github.com/repos/zalando-incubator/api-discovery/languages","stargazers_url":"https://api.github.com/repos/zalando-incubator/api-discovery/stargazers","contributors_url":"https://api.github.com/repos/zalando-incubator/api-discovery/contributors","subscribers_url":"https://api.github.com/repos/zalando-incubator/api-discovery/subscribers","subscription_url":"https://api.github.com/repos/zalando-incubator/api-discovery/subscription","commits_url":"https://api.github.com/repos/zalando-incubator/api-discovery/commits{/sha}","git_commits_url":"https://api.github.com/repos/zalando-incubator/api-discovery/git/commits{/sha}","comments_url":"https://api.github.com/repos/zalando-incubator/api-discovery/comments{/number}","issue_comment_url":"https://api.github.com/repos/zalando-incubator/api-discovery/issues/comments{/number}","contents_url":"https://api.github.com/repos/zalando-incubator/api-discovery/contents/{+path}","compare_url":"https://api.github.com/repos/zalando-incubator/api-discovery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zalando-incubator/api-discovery/merges","archive_url":"https://api.github.com/repos/zalando-incubator/api-discovery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zalando-incubator/api-discovery/downloads","issues_url":"https://api.github.com/repos/zalando-incubator/api-discovery/issues{/number}","pulls_url":"https://api.github.com/repos/zalando-incubator/api-discovery/pulls{/number}","milestones_url":"https://api.github.com/repos/zalando-incubator/api-discovery/milestones{/number}","notifications_url":"https://api.github.com/repos/zalando-incubator/api-discovery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zalando-incubator/api-discovery/labels{/name}","releases_url":"https://api.github.com/repos/zalando-incubator/api-discovery/releases{/id}","deployments_url":"https://api.github.com/repos/zalando-incubator/api-discovery/deployments","created_at":"2017-01-03T09:16:33Z","updated_at":"2017-03-13T08:27:16Z","pushed_at":"2017-04-12T15:30:04Z","git_url":"git://github.com/zalando-incubator/api-discovery.git","ssh_url":"git@github.com:zalando-incubator/api-discovery.git","clone_url":"https://github.com/zalando-incubator/api-discovery.git","svn_url":"https://github.com/zalando-incubator/api-discovery","homepage":null,"size":902,"stargazers_count":9,"watchers_count":9,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":22,"forks":2,"open_issues":22,"watchers":9,"default_branch":"master"}},"base":{"label":"zalando-incubator:master","ref":"master","sha":"3fa4eacc522302fd284ba22f9b5a76a98f5bcf24","user":{"login":"zalando-incubator","id":18533786,"avatar_url":"https://avatars0.githubusercontent.com/u/18533786?v=3","gravatar_id":"","url":"https://api.github.com/users/zalando-incubator","html_url":"https://github.com/zalando-incubator","followers_url":"https://api.github.com/users/zalando-incubator/followers","following_url":"https://api.github.com/users/zalando-incubator/following{/other_user}","gists_url":"https://api.github.com/users/zalando-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/zalando-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalando-incubator/subscriptions","organizations_url":"https://api.github.com/users/zalando-incubator/orgs","repos_url":"https://api.github.com/users/zalando-incubator/repos","events_url":"https://api.github.com/users/zalando-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/zalando-incubator/received_events","type":"Organization","site_admin":false},"repo":{"id":77901720,"name":"api-discovery","full_name":"zalando-incubator/api-discovery","owner":{"login":"zalando-incubator","id":18533786,"avatar_url":"https://avatars0.githubusercontent.com/u/18533786?v=3","gravatar_id":"","url":"https://api.github.com/users/zalando-incubator","html_url":"https://github.com/zalando-incubator","followers_url":"https://api.github.com/users/zalando-incubator/followers","following_url":"https://api.github.com/users/zalando-incubator/following{/other_user}","gists_url":"https://api.github.com/users/zalando-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/zalando-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalando-incubator/subscriptions","organizations_url":"https://api.github.com/users/zalando-incubator/orgs","repos_url":"https://api.github.com/users/zalando-incubator/repos","events_url":"https://api.github.com/users/zalando-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/zalando-incubator/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zalando-incubator/api-discovery","description":"API Discovery Solution for Microservice Architectures","fork":false,"url":"https://api.github.com/repos/zalando-incubator/api-discovery","forks_url":"https://api.github.com/repos/zalando-incubator/api-discovery/forks","keys_url":"https://api.github.com/repos/zalando-incubator/api-discovery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zalando-incubator/api-discovery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zalando-incubator/api-discovery/teams","hooks_url":"https://api.github.com/repos/zalando-incubator/api-discovery/hooks","issue_events_url":"https://api.github.com/repos/zalando-incubator/api-discovery/issues/events{/number}","events_url":"https://api.github.com/repos/zalando-incubator/api-discovery/events","assignees_url":"https://api.github.com/repos/zalando-incubator/api-discovery/assignees{/user}","branches_url":"https://api.github.com/repos/zalando-incubator/api-discovery/branches{/branch}","tags_url":"https://api.github.com/repos/zalando-incubator/api-discovery/tags","blobs_url":"https://api.github.com/repos/zalando-incubator/api-discovery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zalando-incubator/api-discovery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zalando-incubator/api-discovery/git/refs{/sha}","trees_url":"https://api.github.com/repos/zalando-incubator/api-discovery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zalando-incubator/api-discovery/statuses/{sha}","languages_url":"https://api.github.com/repos/zalando-incubator/api-discovery/languages","stargazers_url":"https://api.github.com/repos/zalando-incubator/api-discovery/stargazers","contributors_url":"https://api.github.com/repos/zalando-incubator/api-discovery/contributors","subscribers_url":"https://api.github.com/repos/zalando-incubator/api-discovery/subscribers","subscription_url":"https://api.github.com/repos/zalando-incubator/api-discovery/subscription","commits_url":"https://api.github.com/repos/zalando-incubator/api-discovery/commits{/sha}","git_commits_url":"https://api.github.com/repos/zalando-incubator/api-discovery/git/commits{/sha}","comments_url":"https://api.github.com/repos/zalando-incubator/api-discovery/comments{/number}","issue_comment_url":"https://api.github.com/repos/zalando-incubator/api-discovery/issues/comments{/number}","contents_url":"https://api.github.com/repos/zalando-incubator/api-discovery/contents/{+path}","compare_url":"https://api.github.com/repos/zalando-incubator/api-discovery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zalando-incubator/api-discovery/merges","archive_url":"https://api.github.com/repos/zalando-incubator/api-discovery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zalando-incubator/api-discovery/downloads","issues_url":"https://api.github.com/repos/zalando-incubator/api-discovery/issues{/number}","pulls_url":"https://api.github.com/repos/zalando-incubator/api-discovery/pulls{/number}","milestones_url":"https://api.github.com/repos/zalando-incubator/api-discovery/milestones{/number}","notifications_url":"https://api.github.com/repos/zalando-incubator/api-discovery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zalando-incubator/api-discovery/labels{/name}","releases_url":"https://api.github.com/repos/zalando-incubator/api-discovery/releases{/id}","deployments_url":"https://api.github.com/repos/zalando-incubator/api-discovery/deployments","created_at":"2017-01-03T09:16:33Z","updated_at":"2017-03-13T08:27:16Z","pushed_at":"2017-04-12T15:30:04Z","git_url":"git://github.com/zalando-incubator/api-discovery.git","ssh_url":"git@github.com:zalando-incubator/api-discovery.git","clone_url":"https://github.com/zalando-incubator/api-discovery.git","svn_url":"https://github.com/zalando-incubator/api-discovery","homepage":null,"size":902,"stargazers_count":9,"watchers_count":9,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":22,"forks":2,"open_issues":22,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zalando-incubator/api-discovery/pulls/103"},"html":{"href":"https://github.com/zalando-incubator/api-discovery/pull/103"},"issue":{"href":"https://api.github.com/repos/zalando-incubator/api-discovery/issues/103"},"comments":{"href":"https://api.github.com/repos/zalando-incubator/api-discovery/issues/103/comments"},"review_comments":{"href":"https://api.github.com/repos/zalando-incubator/api-discovery/pulls/103/comments"},"review_comment":{"href":"https://api.github.com/repos/zalando-incubator/api-discovery/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zalando-incubator/api-discovery/pulls/103/commits"},"statuses":{"href":"https://api.github.com/repos/zalando-incubator/api-discovery/statuses/be5632a815f8742d44fe788ef52acb942f1e7705"}}}}
{"actor":{"display_login":"fmueller"}}