{"action":"opened","issue":{"url":"https://api.github.com/repos/cjstehno/vanilla/issues/21","labels_url":"https://api.github.com/repos/cjstehno/vanilla/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/cjstehno/vanilla/issues/21/comments","events_url":"https://api.github.com/repos/cjstehno/vanilla/issues/21/events","html_url":"https://github.com/cjstehno/vanilla/issues/21","id":125757422,"number":21,"title":"ResultSetMappers should allow mapping from multiple columns","user":{"login":"cjstehno","id":183338,"avatar_url":"https://avatars.githubusercontent.com/u/183338?v=3","gravatar_id":"","url":"https://api.github.com/users/cjstehno","html_url":"https://github.com/cjstehno","followers_url":"https://api.github.com/users/cjstehno/followers","following_url":"https://api.github.com/users/cjstehno/following{/other_user}","gists_url":"https://api.github.com/users/cjstehno/gists{/gist_id}","starred_url":"https://api.github.com/users/cjstehno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjstehno/subscriptions","organizations_url":"https://api.github.com/users/cjstehno/orgs","repos_url":"https://api.github.com/users/cjstehno/repos","events_url":"https://api.github.com/users/cjstehno/events{/privacy}","received_events_url":"https://api.github.com/users/cjstehno/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cjstehno/vanilla/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/cjstehno/vanilla/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"cjstehno","id":183338,"avatar_url":"https://avatars.githubusercontent.com/u/183338?v=3","gravatar_id":"","url":"https://api.github.com/users/cjstehno","html_url":"https://github.com/cjstehno","followers_url":"https://api.github.com/users/cjstehno/followers","following_url":"https://api.github.com/users/cjstehno/following{/other_user}","gists_url":"https://api.github.com/users/cjstehno/gists{/gist_id}","starred_url":"https://api.github.com/users/cjstehno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjstehno/subscriptions","organizations_url":"https://api.github.com/users/cjstehno/orgs","repos_url":"https://api.github.com/users/cjstehno/repos","events_url":"https://api.github.com/users/cjstehno/events{/privacy}","received_events_url":"https://api.github.com/users/cjstehno/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2016-01-09T12:39:12Z","updated_at":"2016-01-09T12:39:12Z","closed_at":null,"body":"Cases where a mapped object field is made from multiple database columns are not supported:\r\n\r\n```groovy\r\nclass Foo {\r\n   Bar bar\r\n}\r\n```\r\n\r\nshould be mappable as:\r\n\r\n```groovy\r\nmap 'bar' fromColumns('bar_a','bar_b') using { a,b-> new Bar(a,b) }\r\n```\r\n\r\nIdeally this construct should be allowed in both implicit and explicit mapping styles."}}