{"action":"created","comment":{"url":"https://api.github.com/repos/PolishAirports/ppl-commons/pulls/comments/55003816","id":55003816,"diff_hunk":"@@ -32,4 +52,114 @@ class FetchableJpaRepositorySpec extends Specification {\n             ex.message.startsWith \"Customer entity with id=$nonExistientCustomerId does not exist\"\n             ex.cause.class == EntityNotFoundException\n     }\n+\n+    def 'should return customer with match name'() {\n+        given:\n+          Customer customer = new Customer(id: 1L, name: 'test')\n+          customerRepository.save(customer)\n+          Customer customer2 = new Customer(id: 2L, name: 'michal')\n+          customer2.nicknames = [\"test\"]\n+          customerRepository.save(customer2)\n+        when:\n+          List<Customer> customers = customerRepository.findAll(Specifications.where(new org.springframework.data.jpa.domain.Specification() {","path":"src/test/groovy/pl/ppl/common/infrastructure/repository/FetchableJpaRepositorySpec.groovy","position":62,"original_position":62,"commit_id":"92b2f6465f66acbb2e162d9286e535f57091de1d","original_commit_id":"92b2f6465f66acbb2e162d9286e535f57091de1d","user":{"login":"dmnk89","id":1219657,"avatar_url":"https://avatars.githubusercontent.com/u/1219657?v=3","gravatar_id":"","url":"https://api.github.com/users/dmnk89","html_url":"https://github.com/dmnk89","followers_url":"https://api.github.com/users/dmnk89/followers","following_url":"https://api.github.com/users/dmnk89/following{/other_user}","gists_url":"https://api.github.com/users/dmnk89/gists{/gist_id}","starred_url":"https://api.github.com/users/dmnk89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmnk89/subscriptions","organizations_url":"https://api.github.com/users/dmnk89/orgs","repos_url":"https://api.github.com/users/dmnk89/repos","events_url":"https://api.github.com/users/dmnk89/events{/privacy}","received_events_url":"https://api.github.com/users/dmnk89/received_events","type":"User","site_admin":false},"body":"`Specifications.where` jest zbędne\r\nsamo `new Specification` wystarczy","created_at":"2016-03-04T08:49:31Z","updated_at":"2016-03-04T08:49:31Z","html_url":"https://github.com/PolishAirports/ppl-commons/pull/5#discussion_r55003816","pull_request_url":"https://api.github.com/repos/PolishAirports/ppl-commons/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/PolishAirports/ppl-commons/pulls/comments/55003816"},"html":{"href":"https://github.com/PolishAirports/ppl-commons/pull/5#discussion_r55003816"},"pull_request":{"href":"https://api.github.com/repos/PolishAirports/ppl-commons/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/PolishAirports/ppl-commons/pulls/5","id":61583506,"html_url":"https://github.com/PolishAirports/ppl-commons/pull/5","diff_url":"https://github.com/PolishAirports/ppl-commons/pull/5.diff","patch_url":"https://github.com/PolishAirports/ppl-commons/pull/5.patch","issue_url":"https://api.github.com/repos/PolishAirports/ppl-commons/issues/5","number":5,"state":"open","locked":false,"title":"add jpa specification and entity graph support","user":{"login":"mihn","id":565381,"avatar_url":"https://avatars.githubusercontent.com/u/565381?v=3","gravatar_id":"","url":"https://api.github.com/users/mihn","html_url":"https://github.com/mihn","followers_url":"https://api.github.com/users/mihn/followers","following_url":"https://api.github.com/users/mihn/following{/other_user}","gists_url":"https://api.github.com/users/mihn/gists{/gist_id}","starred_url":"https://api.github.com/users/mihn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mihn/subscriptions","organizations_url":"https://api.github.com/users/mihn/orgs","repos_url":"https://api.github.com/users/mihn/repos","events_url":"https://api.github.com/users/mihn/events{/privacy}","received_events_url":"https://api.github.com/users/mihn/received_events","type":"User","site_admin":false},"body":"shamelessly stolen from http://stackoverflow.com/questions/26291143/spring-data-jpa-jpaspecificationexecutor-entitygraph","created_at":"2016-03-03T16:16:55Z","updated_at":"2016-03-04T08:49:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"99a2fb62e6ac37242fa5d906f549345d532a4615","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/PolishAirports/ppl-commons/pulls/5/commits","review_comments_url":"https://api.github.com/repos/PolishAirports/ppl-commons/pulls/5/comments","review_comment_url":"https://api.github.com/repos/PolishAirports/ppl-commons/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PolishAirports/ppl-commons/issues/5/comments","statuses_url":"https://api.github.com/repos/PolishAirports/ppl-commons/statuses/92b2f6465f66acbb2e162d9286e535f57091de1d","head":{"label":"mihn:master","ref":"master","sha":"92b2f6465f66acbb2e162d9286e535f57091de1d","user":{"login":"mihn","id":565381,"avatar_url":"https://avatars.githubusercontent.com/u/565381?v=3","gravatar_id":"","url":"https://api.github.com/users/mihn","html_url":"https://github.com/mihn","followers_url":"https://api.github.com/users/mihn/followers","following_url":"https://api.github.com/users/mihn/following{/other_user}","gists_url":"https://api.github.com/users/mihn/gists{/gist_id}","starred_url":"https://api.github.com/users/mihn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mihn/subscriptions","organizations_url":"https://api.github.com/users/mihn/orgs","repos_url":"https://api.github.com/users/mihn/repos","events_url":"https://api.github.com/users/mihn/events{/privacy}","received_events_url":"https://api.github.com/users/mihn/received_events","type":"User","site_admin":false},"repo":{"id":43940986,"name":"ppl-commons","full_name":"mihn/ppl-commons","owner":{"login":"mihn","id":565381,"avatar_url":"https://avatars.githubusercontent.com/u/565381?v=3","gravatar_id":"","url":"https://api.github.com/users/mihn","html_url":"https://github.com/mihn","followers_url":"https://api.github.com/users/mihn/followers","following_url":"https://api.github.com/users/mihn/following{/other_user}","gists_url":"https://api.github.com/users/mihn/gists{/gist_id}","starred_url":"https://api.github.com/users/mihn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mihn/subscriptions","organizations_url":"https://api.github.com/users/mihn/orgs","repos_url":"https://api.github.com/users/mihn/repos","events_url":"https://api.github.com/users/mihn/events{/privacy}","received_events_url":"https://api.github.com/users/mihn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mihn/ppl-commons","description":"","fork":true,"url":"https://api.github.com/repos/mihn/ppl-commons","forks_url":"https://api.github.com/repos/mihn/ppl-commons/forks","keys_url":"https://api.github.com/repos/mihn/ppl-commons/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mihn/ppl-commons/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mihn/ppl-commons/teams","hooks_url":"https://api.github.com/repos/mihn/ppl-commons/hooks","issue_events_url":"https://api.github.com/repos/mihn/ppl-commons/issues/events{/number}","events_url":"https://api.github.com/repos/mihn/ppl-commons/events","assignees_url":"https://api.github.com/repos/mihn/ppl-commons/assignees{/user}","branches_url":"https://api.github.com/repos/mihn/ppl-commons/branches{/branch}","tags_url":"https://api.github.com/repos/mihn/ppl-commons/tags","blobs_url":"https://api.github.com/repos/mihn/ppl-commons/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mihn/ppl-commons/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mihn/ppl-commons/git/refs{/sha}","trees_url":"https://api.github.com/repos/mihn/ppl-commons/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mihn/ppl-commons/statuses/{sha}","languages_url":"https://api.github.com/repos/mihn/ppl-commons/languages","stargazers_url":"https://api.github.com/repos/mihn/ppl-commons/stargazers","contributors_url":"https://api.github.com/repos/mihn/ppl-commons/contributors","subscribers_url":"https://api.github.com/repos/mihn/ppl-commons/subscribers","subscription_url":"https://api.github.com/repos/mihn/ppl-commons/subscription","commits_url":"https://api.github.com/repos/mihn/ppl-commons/commits{/sha}","git_commits_url":"https://api.github.com/repos/mihn/ppl-commons/git/commits{/sha}","comments_url":"https://api.github.com/repos/mihn/ppl-commons/comments{/number}","issue_comment_url":"https://api.github.com/repos/mihn/ppl-commons/issues/comments{/number}","contents_url":"https://api.github.com/repos/mihn/ppl-commons/contents/{+path}","compare_url":"https://api.github.com/repos/mihn/ppl-commons/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mihn/ppl-commons/merges","archive_url":"https://api.github.com/repos/mihn/ppl-commons/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mihn/ppl-commons/downloads","issues_url":"https://api.github.com/repos/mihn/ppl-commons/issues{/number}","pulls_url":"https://api.github.com/repos/mihn/ppl-commons/pulls{/number}","milestones_url":"https://api.github.com/repos/mihn/ppl-commons/milestones{/number}","notifications_url":"https://api.github.com/repos/mihn/ppl-commons/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mihn/ppl-commons/labels{/name}","releases_url":"https://api.github.com/repos/mihn/ppl-commons/releases{/id}","deployments_url":"https://api.github.com/repos/mihn/ppl-commons/deployments","created_at":"2015-10-09T07:52:16Z","updated_at":"2016-03-03T14:36:22Z","pushed_at":"2016-03-04T08:41:17Z","git_url":"git://github.com/mihn/ppl-commons.git","ssh_url":"git@github.com:mihn/ppl-commons.git","clone_url":"https://github.com/mihn/ppl-commons.git","svn_url":"https://github.com/mihn/ppl-commons","homepage":null,"size":81,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"PolishAirports:master","ref":"master","sha":"01ab43cdcdc140e898db01970a7dc879ad94f235","user":{"login":"PolishAirports","id":12016287,"avatar_url":"https://avatars.githubusercontent.com/u/12016287?v=3","gravatar_id":"","url":"https://api.github.com/users/PolishAirports","html_url":"https://github.com/PolishAirports","followers_url":"https://api.github.com/users/PolishAirports/followers","following_url":"https://api.github.com/users/PolishAirports/following{/other_user}","gists_url":"https://api.github.com/users/PolishAirports/gists{/gist_id}","starred_url":"https://api.github.com/users/PolishAirports/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PolishAirports/subscriptions","organizations_url":"https://api.github.com/users/PolishAirports/orgs","repos_url":"https://api.github.com/users/PolishAirports/repos","events_url":"https://api.github.com/users/PolishAirports/events{/privacy}","received_events_url":"https://api.github.com/users/PolishAirports/received_events","type":"Organization","site_admin":false},"repo":{"id":40406605,"name":"ppl-commons","full_name":"PolishAirports/ppl-commons","owner":{"login":"PolishAirports","id":12016287,"avatar_url":"https://avatars.githubusercontent.com/u/12016287?v=3","gravatar_id":"","url":"https://api.github.com/users/PolishAirports","html_url":"https://github.com/PolishAirports","followers_url":"https://api.github.com/users/PolishAirports/followers","following_url":"https://api.github.com/users/PolishAirports/following{/other_user}","gists_url":"https://api.github.com/users/PolishAirports/gists{/gist_id}","starred_url":"https://api.github.com/users/PolishAirports/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PolishAirports/subscriptions","organizations_url":"https://api.github.com/users/PolishAirports/orgs","repos_url":"https://api.github.com/users/PolishAirports/repos","events_url":"https://api.github.com/users/PolishAirports/events{/privacy}","received_events_url":"https://api.github.com/users/PolishAirports/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PolishAirports/ppl-commons","description":"","fork":false,"url":"https://api.github.com/repos/PolishAirports/ppl-commons","forks_url":"https://api.github.com/repos/PolishAirports/ppl-commons/forks","keys_url":"https://api.github.com/repos/PolishAirports/ppl-commons/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PolishAirports/ppl-commons/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PolishAirports/ppl-commons/teams","hooks_url":"https://api.github.com/repos/PolishAirports/ppl-commons/hooks","issue_events_url":"https://api.github.com/repos/PolishAirports/ppl-commons/issues/events{/number}","events_url":"https://api.github.com/repos/PolishAirports/ppl-commons/events","assignees_url":"https://api.github.com/repos/PolishAirports/ppl-commons/assignees{/user}","branches_url":"https://api.github.com/repos/PolishAirports/ppl-commons/branches{/branch}","tags_url":"https://api.github.com/repos/PolishAirports/ppl-commons/tags","blobs_url":"https://api.github.com/repos/PolishAirports/ppl-commons/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PolishAirports/ppl-commons/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PolishAirports/ppl-commons/git/refs{/sha}","trees_url":"https://api.github.com/repos/PolishAirports/ppl-commons/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PolishAirports/ppl-commons/statuses/{sha}","languages_url":"https://api.github.com/repos/PolishAirports/ppl-commons/languages","stargazers_url":"https://api.github.com/repos/PolishAirports/ppl-commons/stargazers","contributors_url":"https://api.github.com/repos/PolishAirports/ppl-commons/contributors","subscribers_url":"https://api.github.com/repos/PolishAirports/ppl-commons/subscribers","subscription_url":"https://api.github.com/repos/PolishAirports/ppl-commons/subscription","commits_url":"https://api.github.com/repos/PolishAirports/ppl-commons/commits{/sha}","git_commits_url":"https://api.github.com/repos/PolishAirports/ppl-commons/git/commits{/sha}","comments_url":"https://api.github.com/repos/PolishAirports/ppl-commons/comments{/number}","issue_comment_url":"https://api.github.com/repos/PolishAirports/ppl-commons/issues/comments{/number}","contents_url":"https://api.github.com/repos/PolishAirports/ppl-commons/contents/{+path}","compare_url":"https://api.github.com/repos/PolishAirports/ppl-commons/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PolishAirports/ppl-commons/merges","archive_url":"https://api.github.com/repos/PolishAirports/ppl-commons/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PolishAirports/ppl-commons/downloads","issues_url":"https://api.github.com/repos/PolishAirports/ppl-commons/issues{/number}","pulls_url":"https://api.github.com/repos/PolishAirports/ppl-commons/pulls{/number}","milestones_url":"https://api.github.com/repos/PolishAirports/ppl-commons/milestones{/number}","notifications_url":"https://api.github.com/repos/PolishAirports/ppl-commons/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PolishAirports/ppl-commons/labels{/name}","releases_url":"https://api.github.com/repos/PolishAirports/ppl-commons/releases{/id}","deployments_url":"https://api.github.com/repos/PolishAirports/ppl-commons/deployments","created_at":"2015-08-08T15:12:12Z","updated_at":"2016-01-25T13:40:18Z","pushed_at":"2016-03-04T08:41:18Z","git_url":"git://github.com/PolishAirports/ppl-commons.git","ssh_url":"git@github.com:PolishAirports/ppl-commons.git","clone_url":"https://github.com/PolishAirports/ppl-commons.git","svn_url":"https://github.com/PolishAirports/ppl-commons","homepage":null,"size":77,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PolishAirports/ppl-commons/pulls/5"},"html":{"href":"https://github.com/PolishAirports/ppl-commons/pull/5"},"issue":{"href":"https://api.github.com/repos/PolishAirports/ppl-commons/issues/5"},"comments":{"href":"https://api.github.com/repos/PolishAirports/ppl-commons/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/PolishAirports/ppl-commons/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/PolishAirports/ppl-commons/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PolishAirports/ppl-commons/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/PolishAirports/ppl-commons/statuses/92b2f6465f66acbb2e162d9286e535f57091de1d"}}}}