{"action":"created","issue":{"url":"https://api.github.com/repos/fabric8io/data-mapper/issues/97","labels_url":"https://api.github.com/repos/fabric8io/data-mapper/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/fabric8io/data-mapper/issues/97/comments","events_url":"https://api.github.com/repos/fabric8io/data-mapper/issues/97/events","html_url":"https://github.com/fabric8io/data-mapper/issues/97","id":54497851,"number":97,"title":"Consider using converters by id","user":{"login":"kcbabo","id":340837,"avatar_url":"https://avatars.githubusercontent.com/u/340837?v=3","gravatar_id":"","url":"https://api.github.com/users/kcbabo","html_url":"https://github.com/kcbabo","followers_url":"https://api.github.com/users/kcbabo/followers","following_url":"https://api.github.com/users/kcbabo/following{/other_user}","gists_url":"https://api.github.com/users/kcbabo/gists{/gist_id}","starred_url":"https://api.github.com/users/kcbabo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kcbabo/subscriptions","organizations_url":"https://api.github.com/users/kcbabo/orgs","repos_url":"https://api.github.com/users/kcbabo/repos","events_url":"https://api.github.com/users/kcbabo/events{/privacy}","received_events_url":"https://api.github.com/users/kcbabo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fabric8io/data-mapper/labels/priority-warm","name":"priority-warm","color":"fbca04"}],"state":"closed","locked":false,"assignee":{"login":"kcbabo","id":340837,"avatar_url":"https://avatars.githubusercontent.com/u/340837?v=3","gravatar_id":"","url":"https://api.github.com/users/kcbabo","html_url":"https://github.com/kcbabo","followers_url":"https://api.github.com/users/kcbabo/followers","following_url":"https://api.github.com/users/kcbabo/following{/other_user}","gists_url":"https://api.github.com/users/kcbabo/gists{/gist_id}","starred_url":"https://api.github.com/users/kcbabo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kcbabo/subscriptions","organizations_url":"https://api.github.com/users/kcbabo/orgs","repos_url":"https://api.github.com/users/kcbabo/repos","events_url":"https://api.github.com/users/kcbabo/events{/privacy}","received_events_url":"https://api.github.com/users/kcbabo/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/fabric8io/data-mapper/milestones/3","labels_url":"https://api.github.com/repos/fabric8io/data-mapper/milestones/3/labels","id":912572,"number":3,"title":"Milestone 3","description":"","creator":{"login":"kcbabo","id":340837,"avatar_url":"https://avatars.githubusercontent.com/u/340837?v=3","gravatar_id":"","url":"https://api.github.com/users/kcbabo","html_url":"https://github.com/kcbabo","followers_url":"https://api.github.com/users/kcbabo/followers","following_url":"https://api.github.com/users/kcbabo/following{/other_user}","gists_url":"https://api.github.com/users/kcbabo/gists{/gist_id}","starred_url":"https://api.github.com/users/kcbabo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kcbabo/subscriptions","organizations_url":"https://api.github.com/users/kcbabo/orgs","repos_url":"https://api.github.com/users/kcbabo/repos","events_url":"https://api.github.com/users/kcbabo/events{/privacy}","received_events_url":"https://api.github.com/users/kcbabo/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":19,"state":"open","created_at":"2014-12-22T18:47:00Z","updated_at":"2015-02-12T19:36:47Z","due_on":"2015-02-14T05:00:00Z","closed_at":null},"comments":2,"created_at":"2015-01-15T20:12:00Z","updated_at":"2015-02-12T19:36:47Z","closed_at":"2015-02-12T19:36:47Z","body":"At present, we use Dozer converters to handle assignment of literal values to the target model.  The converter class is specified on each field using a literal mapping, which means the converter class is instantiated each time the field is mapped.  Consider creating a single converter per Camel endpoint and then referencing that converter by ID.  Things to keep in mind:\r\n\r\n- Tooling and runtime need to agree on the ID used.  Change in one will break the other.\r\n- Based on the way that Dozer handles converters with parameters, access to the converter instance must be synchronized (potential perf hit)."},"comment":{"url":"https://api.github.com/repos/fabric8io/data-mapper/issues/comments/74137112","html_url":"https://github.com/fabric8io/data-mapper/issues/97#issuecomment-74137112","issue_url":"https://api.github.com/repos/fabric8io/data-mapper/issues/97","id":74137112,"user":{"login":"kcbabo","id":340837,"avatar_url":"https://avatars.githubusercontent.com/u/340837?v=3","gravatar_id":"","url":"https://api.github.com/users/kcbabo","html_url":"https://github.com/kcbabo","followers_url":"https://api.github.com/users/kcbabo/followers","following_url":"https://api.github.com/users/kcbabo/following{/other_user}","gists_url":"https://api.github.com/users/kcbabo/gists{/gist_id}","starred_url":"https://api.github.com/users/kcbabo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kcbabo/subscriptions","organizations_url":"https://api.github.com/users/kcbabo/orgs","repos_url":"https://api.github.com/users/kcbabo/repos","events_url":"https://api.github.com/users/kcbabo/events{/privacy}","received_events_url":"https://api.github.com/users/kcbabo/received_events","type":"User","site_admin":false},"created_at":"2015-02-12T19:36:47Z","updated_at":"2015-02-12T19:36:47Z","body":"pushed"}}