{"action":"created","issue":{"url":"https://api.github.com/repos/DozerMapper/dozer/issues/221","repository_url":"https://api.github.com/repos/DozerMapper/dozer","labels_url":"https://api.github.com/repos/DozerMapper/dozer/issues/221/labels{/name}","comments_url":"https://api.github.com/repos/DozerMapper/dozer/issues/221/comments","events_url":"https://api.github.com/repos/DozerMapper/dozer/issues/221/events","html_url":"https://github.com/DozerMapper/dozer/issues/221","id":53301513,"number":221,"title":"Need to convert class A to class B having lists","user":{"login":"Guarav","id":2375890,"avatar_url":"https://avatars.githubusercontent.com/u/2375890?v=3","gravatar_id":"","url":"https://api.github.com/users/Guarav","html_url":"https://github.com/Guarav","followers_url":"https://api.github.com/users/Guarav/followers","following_url":"https://api.github.com/users/Guarav/following{/other_user}","gists_url":"https://api.github.com/users/Guarav/gists{/gist_id}","starred_url":"https://api.github.com/users/Guarav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Guarav/subscriptions","organizations_url":"https://api.github.com/users/Guarav/orgs","repos_url":"https://api.github.com/users/Guarav/repos","events_url":"https://api.github.com/users/Guarav/events{/privacy}","received_events_url":"https://api.github.com/users/Guarav/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2015-01-03T11:23:39Z","updated_at":"2016-10-14T05:59:11Z","closed_at":null,"body":"I have a class A as : \r\n   \r\n\r\n\r\n    class A {\r\n    \r\n      private String account;\r\n      private List<String> targets;\r\n      \r\n    }\r\n\r\n\r\nand class B \r\n\r\n    class B {\r\n       private String account;\r\n       private List<Custom> customTargets;\r\n    }\r\n\r\nand class Custom class \r\n\r\n    class Custom {\r\n      private String target1;\r\n\r\n      private String target2;\r\n    \r\n    }\r\n\r\nNow, i need to convert class A to class B, for which i got stuck at converting List<String> to List<Custom> and fill Custom.target1 to be filled with elements of List<String>\r\n\r\ni tried \r\n\r\n    <mapping type=\"one-way\">\r\n            <class-a>A</class-a>\r\n            <class-b>B</class-b>\r\n    \r\n    \r\n            <field>\r\n                <a>targets</a>\r\n                <b>customTargets</b>\r\n                <a-hint>java.lang.String</a-hint>\r\n                <b-hint>Custom</b-hint>\r\n            </field>\r\n        </mapping>\r\n    \r\n     <mapping type=\"one-way\">\r\n            <class-a>java.lang.String</class-a>\r\n            <class-b>Custom</class-b>\r\n    \r\n            <field>\r\n                <a>this</a>\r\n                <b>target1</b>\r\n            </field>\r\n        </mapping>\r\n\r\nBut List in class B is getting converted to `List<String>` instead of `List<Custom>`.\r\nNote : I am avoiding using custom converter here."},"comment":{"url":"https://api.github.com/repos/DozerMapper/dozer/issues/comments/253716404","html_url":"https://github.com/DozerMapper/dozer/issues/221#issuecomment-253716404","issue_url":"https://api.github.com/repos/DozerMapper/dozer/issues/221","id":253716404,"user":{"login":"TimMeissner","id":12040833,"avatar_url":"https://avatars.githubusercontent.com/u/12040833?v=3","gravatar_id":"","url":"https://api.github.com/users/TimMeissner","html_url":"https://github.com/TimMeissner","followers_url":"https://api.github.com/users/TimMeissner/followers","following_url":"https://api.github.com/users/TimMeissner/following{/other_user}","gists_url":"https://api.github.com/users/TimMeissner/gists{/gist_id}","starred_url":"https://api.github.com/users/TimMeissner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TimMeissner/subscriptions","organizations_url":"https://api.github.com/users/TimMeissner/orgs","repos_url":"https://api.github.com/users/TimMeissner/repos","events_url":"https://api.github.com/users/TimMeissner/events{/privacy}","received_events_url":"https://api.github.com/users/TimMeissner/received_events","type":"User","site_admin":false},"created_at":"2016-10-14T05:59:10Z","updated_at":"2016-10-14T05:59:10Z","body":"+1 i got this too, must be a bug? Did you try writing a custom converter to get around the problem?"}}
{"actor":{"display_login":"TimMeissner"}}