{"action":"closed","issue":{"url":"https://api.github.com/repos/remondis-it/remap/issues/52","repository_url":"https://api.github.com/repos/remondis-it/remap","labels_url":"https://api.github.com/repos/remondis-it/remap/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/remondis-it/remap/issues/52/comments","events_url":"https://api.github.com/repos/remondis-it/remap/issues/52/events","html_url":"https://github.com/remondis-it/remap/issues/52","id":319508277,"number":52,"title":"Supply parameters to mapper.map method","user":{"login":"michalre","id":1952948,"avatar_url":"https://avatars3.githubusercontent.com/u/1952948?v=4","gravatar_id":"","url":"https://api.github.com/users/michalre","html_url":"https://github.com/michalre","followers_url":"https://api.github.com/users/michalre/followers","following_url":"https://api.github.com/users/michalre/following{/other_user}","gists_url":"https://api.github.com/users/michalre/gists{/gist_id}","starred_url":"https://api.github.com/users/michalre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michalre/subscriptions","organizations_url":"https://api.github.com/users/michalre/orgs","repos_url":"https://api.github.com/users/michalre/repos","events_url":"https://api.github.com/users/michalre/events{/privacy}","received_events_url":"https://api.github.com/users/michalre/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-02T11:06:10Z","updated_at":"2018-05-06T16:55:28Z","closed_at":"2018-05-06T16:55:28Z","author_association":"NONE","body":"My use case is:\r\nSource:  Person with fields firstName, lastName, languageId\r\nDestination: PersonDto with fields firstName, lastName, languageName\r\n\r\nCan I somehow call mapper.map(person, languageNameByLanguageIdHashMap/producer of map) and define mapping for languageId -> languageName to get language name from this HashMap?\r\n\r\nI can do it when creating mapping but I in my case, I create mapping when Spring starts and the HashMap needs to be created right before calling mapper.map( ) so that it contains latest data, because I am using it for something more dynamic than language."}}
{"actor":{"display_login":"michalre"}}