{"action":"created","issue":{"url":"https://api.github.com/repos/mapstruct/mapstruct/issues/244","labels_url":"https://api.github.com/repos/mapstruct/mapstruct/issues/244/labels{/name}","comments_url":"https://api.github.com/repos/mapstruct/mapstruct/issues/244/comments","events_url":"https://api.github.com/repos/mapstruct/mapstruct/issues/244/events","html_url":"https://github.com/mapstruct/mapstruct/issues/244","id":36523945,"number":244,"title":"Support a real expression language in Mapping#expression()","user":{"login":"gunnarmorling","id":28612,"avatar_url":"https://avatars.githubusercontent.com/u/28612?v=3","gravatar_id":"","url":"https://api.github.com/users/gunnarmorling","html_url":"https://github.com/gunnarmorling","followers_url":"https://api.github.com/users/gunnarmorling/followers","following_url":"https://api.github.com/users/gunnarmorling/following{/other_user}","gists_url":"https://api.github.com/users/gunnarmorling/gists{/gist_id}","starred_url":"https://api.github.com/users/gunnarmorling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gunnarmorling/subscriptions","organizations_url":"https://api.github.com/users/gunnarmorling/orgs","repos_url":"https://api.github.com/users/gunnarmorling/repos","events_url":"https://api.github.com/users/gunnarmorling/events{/privacy}","received_events_url":"https://api.github.com/users/gunnarmorling/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mapstruct/mapstruct/labels/feature","name":"feature","color":"009800"}],"state":"open","locked":false,"assignee":{"login":"timoe","id":4163320,"avatar_url":"https://avatars.githubusercontent.com/u/4163320?v=3","gravatar_id":"","url":"https://api.github.com/users/timoe","html_url":"https://github.com/timoe","followers_url":"https://api.github.com/users/timoe/followers","following_url":"https://api.github.com/users/timoe/following{/other_user}","gists_url":"https://api.github.com/users/timoe/gists{/gist_id}","starred_url":"https://api.github.com/users/timoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timoe/subscriptions","organizations_url":"https://api.github.com/users/timoe/orgs","repos_url":"https://api.github.com/users/timoe/repos","events_url":"https://api.github.com/users/timoe/events{/privacy}","received_events_url":"https://api.github.com/users/timoe/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/mapstruct/mapstruct/milestones/9","html_url":"https://github.com/mapstruct/mapstruct/milestones/1.1-next","labels_url":"https://api.github.com/repos/mapstruct/mapstruct/milestones/9/labels","id":1037038,"number":9,"title":"1.1-next","description":"Planning bucket for possible new features/enhancements in 1.1.","creator":{"login":"gunnarmorling","id":28612,"avatar_url":"https://avatars.githubusercontent.com/u/28612?v=3","gravatar_id":"","url":"https://api.github.com/users/gunnarmorling","html_url":"https://github.com/gunnarmorling","followers_url":"https://api.github.com/users/gunnarmorling/followers","following_url":"https://api.github.com/users/gunnarmorling/following{/other_user}","gists_url":"https://api.github.com/users/gunnarmorling/gists{/gist_id}","starred_url":"https://api.github.com/users/gunnarmorling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gunnarmorling/subscriptions","organizations_url":"https://api.github.com/users/gunnarmorling/orgs","repos_url":"https://api.github.com/users/gunnarmorling/repos","events_url":"https://api.github.com/users/gunnarmorling/events{/privacy}","received_events_url":"https://api.github.com/users/gunnarmorling/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2015-03-24T19:39:22Z","updated_at":"2015-03-24T21:27:02Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2014-06-25T21:25:19Z","updated_at":"2015-04-09T11:58:19Z","closed_at":null,"body":"There should be support for a real expression language in Mapping#expression():\r\n\r\n    @Mapping(target=\"foo\", source=\"bar.firstName + ' ' + bar.lastName\")\r\n\r\nPossible candidates are Unified EL or SpEL. The latter allows constructor invocations which would be very useful. The general idea is to translate the given expressions into equivalent Java source code which then is embedded into the generated mapping method. Bot UEL (via JUEL) and SpEL allow to access and traverse the AST of given expressions for that purpose."},"comment":{"url":"https://api.github.com/repos/mapstruct/mapstruct/issues/comments/91208843","html_url":"https://github.com/mapstruct/mapstruct/issues/244#issuecomment-91208843","issue_url":"https://api.github.com/repos/mapstruct/mapstruct/issues/244","id":91208843,"user":{"login":"timoe","id":4163320,"avatar_url":"https://avatars.githubusercontent.com/u/4163320?v=3","gravatar_id":"","url":"https://api.github.com/users/timoe","html_url":"https://github.com/timoe","followers_url":"https://api.github.com/users/timoe/followers","following_url":"https://api.github.com/users/timoe/following{/other_user}","gists_url":"https://api.github.com/users/timoe/gists{/gist_id}","starred_url":"https://api.github.com/users/timoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timoe/subscriptions","organizations_url":"https://api.github.com/users/timoe/orgs","repos_url":"https://api.github.com/users/timoe/repos","events_url":"https://api.github.com/users/timoe/events{/privacy}","received_events_url":"https://api.github.com/users/timoe/received_events","type":"User","site_admin":false},"created_at":"2015-04-09T11:58:19Z","updated_at":"2015-04-09T11:58:19Z","body":"Hey @gunnarmorling. Yes, I already played around using SpringEL but that does not reach a stage where I can create PRs to discuss about. For reasons I´m a little but busy right now but I´ll do with this. "}}