{"action":"created","issue":{"url":"https://api.github.com/repos/spring-projects/spring-data-commons/issues/209","repository_url":"https://api.github.com/repos/spring-projects/spring-data-commons","labels_url":"https://api.github.com/repos/spring-projects/spring-data-commons/issues/209/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-data-commons/issues/209/comments","events_url":"https://api.github.com/repos/spring-projects/spring-data-commons/issues/209/events","html_url":"https://github.com/spring-projects/spring-data-commons/pull/209","id":222984394,"number":209,"title":"DATACMNS-1034 - Introduced API to easily register bidirectional, type-based converters.","user":{"login":"olivergierke","id":128577,"avatar_url":"https://avatars2.githubusercontent.com/u/128577?v=3","gravatar_id":"","url":"https://api.github.com/users/olivergierke","html_url":"https://github.com/olivergierke","followers_url":"https://api.github.com/users/olivergierke/followers","following_url":"https://api.github.com/users/olivergierke/following{/other_user}","gists_url":"https://api.github.com/users/olivergierke/gists{/gist_id}","starred_url":"https://api.github.com/users/olivergierke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olivergierke/subscriptions","organizations_url":"https://api.github.com/users/olivergierke/orgs","repos_url":"https://api.github.com/users/olivergierke/repos","events_url":"https://api.github.com/users/olivergierke/events{/privacy}","received_events_url":"https://api.github.com/users/olivergierke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-04-20T08:14:31Z","updated_at":"2017-04-21T15:47:58Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/spring-projects/spring-data-commons/pulls/209","html_url":"https://github.com/spring-projects/spring-data-commons/pull/209","diff_url":"https://github.com/spring-projects/spring-data-commons/pull/209.diff","patch_url":"https://github.com/spring-projects/spring-data-commons/pull/209.patch"},"body":"Introduced `ConverterBuilder` which exposes API to register Spring `GenericConverter`s for the use with a store module's `CustomConversions`. This allows simple registration of such converters using Java 8 lambdas.\r\n\r\n```java\r\nConverterAware converters = ConverterBuilder\r\n  .reading(String.class, Long.class, it -> Long.valueOf(it))\r\n  .andWriting(it -> Object::toString);\r\n```\r\n\r\nThe setup can also be done from the reading side which would just need the method invocations inverted. The resulting `ConverterAware` will expose the registered converters so that they can be easily handed to a `CustomConversions` instance. Partial creation of either reading or writing converters is possible, too with the returned instance then only exposing one of the two converters."},"comment":{"url":"https://api.github.com/repos/spring-projects/spring-data-commons/issues/comments/296227980","html_url":"https://github.com/spring-projects/spring-data-commons/pull/209#issuecomment-296227980","issue_url":"https://api.github.com/repos/spring-projects/spring-data-commons/issues/209","id":296227980,"user":{"login":"olivergierke","id":128577,"avatar_url":"https://avatars2.githubusercontent.com/u/128577?v=3","gravatar_id":"","url":"https://api.github.com/users/olivergierke","html_url":"https://github.com/olivergierke","followers_url":"https://api.github.com/users/olivergierke/followers","following_url":"https://api.github.com/users/olivergierke/following{/other_user}","gists_url":"https://api.github.com/users/olivergierke/gists{/gist_id}","starred_url":"https://api.github.com/users/olivergierke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olivergierke/subscriptions","organizations_url":"https://api.github.com/users/olivergierke/orgs","repos_url":"https://api.github.com/users/olivergierke/repos","events_url":"https://api.github.com/users/olivergierke/events{/privacy}","received_events_url":"https://api.github.com/users/olivergierke/received_events","type":"User","site_admin":false},"created_at":"2017-04-21T15:47:58Z","updated_at":"2017-04-21T15:47:58Z","body":"Somehow some bogus commits slipped into this one. Removing."}}
{"actor":{"display_login":"olivergierke"}}