{"action":"created","issue":{"url":"https://api.github.com/repos/jOOQ/jOOQ/issues/4095","labels_url":"https://api.github.com/repos/jOOQ/jOOQ/issues/4095/labels{/name}","comments_url":"https://api.github.com/repos/jOOQ/jOOQ/issues/4095/comments","events_url":"https://api.github.com/repos/jOOQ/jOOQ/issues/4095/events","html_url":"https://github.com/jOOQ/jOOQ/issues/4095","id":58787776,"number":4095,"title":"Generated Record classes should provide map() ","user":{"login":"stevetodd","id":1356171,"avatar_url":"https://avatars.githubusercontent.com/u/1356171?v=3","gravatar_id":"","url":"https://api.github.com/users/stevetodd","html_url":"https://github.com/stevetodd","followers_url":"https://api.github.com/users/stevetodd/followers","following_url":"https://api.github.com/users/stevetodd/following{/other_user}","gists_url":"https://api.github.com/users/stevetodd/gists{/gist_id}","starred_url":"https://api.github.com/users/stevetodd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevetodd/subscriptions","organizations_url":"https://api.github.com/users/stevetodd/orgs","repos_url":"https://api.github.com/users/stevetodd/repos","events_url":"https://api.github.com/users/stevetodd/events{/privacy}","received_events_url":"https://api.github.com/users/stevetodd/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jOOQ/jOOQ/labels/C:%20Code%20Generation","name":"C: Code Generation","color":"0000aa"},{"url":"https://api.github.com/repos/jOOQ/jOOQ/labels/P:%20Medium","name":"P: Medium","color":"ffaaaa"},{"url":"https://api.github.com/repos/jOOQ/jOOQ/labels/R:%20Wontfix","name":"R: Wontfix","color":"bbffbb"},{"url":"https://api.github.com/repos/jOOQ/jOOQ/labels/T:%20Enhancement","name":"T: Enhancement","color":"cccccc"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/jOOQ/jOOQ/milestones/105","html_url":"https://github.com/jOOQ/jOOQ/milestones/Version%203.6.0","labels_url":"https://api.github.com/repos/jOOQ/jOOQ/milestones/105/labels","id":735859,"number":105,"title":"Version 3.6.0","description":"","creator":{"login":"lukaseder","id":734593,"avatar_url":"https://avatars.githubusercontent.com/u/734593?v=3","gravatar_id":"","url":"https://api.github.com/users/lukaseder","html_url":"https://github.com/lukaseder","followers_url":"https://api.github.com/users/lukaseder/followers","following_url":"https://api.github.com/users/lukaseder/following{/other_user}","gists_url":"https://api.github.com/users/lukaseder/gists{/gist_id}","starred_url":"https://api.github.com/users/lukaseder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukaseder/subscriptions","organizations_url":"https://api.github.com/users/lukaseder/orgs","repos_url":"https://api.github.com/users/lukaseder/repos","events_url":"https://api.github.com/users/lukaseder/events{/privacy}","received_events_url":"https://api.github.com/users/lukaseder/received_events","type":"User","site_admin":false},"open_issues":75,"closed_issues":246,"state":"open","created_at":"2014-07-29T16:27:29Z","updated_at":"2015-04-08T13:50:54Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-02-24T19:06:05Z","updated_at":"2015-04-08T13:50:54Z","closed_at":"2015-04-08T13:50:54Z","body":"I want to be able to do this:\r\n\r\n```\r\ndslContext.fetchOne(FOO, ...).map(this::map);\r\n```\r\nwhere I have in the same class\r\n```\r\npublic MySpecialFoo map(FooRecord record) {\r\n    MySpecialFoo mySpecialFoo = new MySpecialFoo()\r\n\r\n    // do stuff with record\r\n\r\n   return mySpecialFoo;\r\n}\r\n```\r\nRight now, AbstractRecord.map() is declared as:\r\n```\r\npublic final <E> E map(RecordMapper<Record, E> mapper)\r\n```\r\nWith a generic Record. :disappointed: \r\n\r\nI would love the generator to generate a method like:\r\n```\r\npublic final <E> E map(RecordMapper<FooRecord, E> mapper)\r\n```"},"comment":{"url":"https://api.github.com/repos/jOOQ/jOOQ/issues/comments/90922785","html_url":"https://github.com/jOOQ/jOOQ/issues/4095#issuecomment-90922785","issue_url":"https://api.github.com/repos/jOOQ/jOOQ/issues/4095","id":90922785,"user":{"login":"lukaseder","id":734593,"avatar_url":"https://avatars.githubusercontent.com/u/734593?v=3","gravatar_id":"","url":"https://api.github.com/users/lukaseder","html_url":"https://github.com/lukaseder","followers_url":"https://api.github.com/users/lukaseder/followers","following_url":"https://api.github.com/users/lukaseder/following{/other_user}","gists_url":"https://api.github.com/users/lukaseder/gists{/gist_id}","starred_url":"https://api.github.com/users/lukaseder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukaseder/subscriptions","organizations_url":"https://api.github.com/users/lukaseder/orgs","repos_url":"https://api.github.com/users/lukaseder/repos","events_url":"https://api.github.com/users/lukaseder/events{/privacy}","received_events_url":"https://api.github.com/users/lukaseder/received_events","type":"User","site_admin":false},"created_at":"2015-04-08T13:50:54Z","updated_at":"2015-04-08T13:50:54Z","body":"It would be great if this could be fixed easily, but unfortunately, there doesn't seem to be a way. We'll reopen this, once there's a solution"}}