{"action":"created","issue":{"url":"https://api.github.com/repos/jOOQ/jOOQ/issues/5535","repository_url":"https://api.github.com/repos/jOOQ/jOOQ","labels_url":"https://api.github.com/repos/jOOQ/jOOQ/issues/5535/labels{/name}","comments_url":"https://api.github.com/repos/jOOQ/jOOQ/issues/5535/comments","events_url":"https://api.github.com/repos/jOOQ/jOOQ/issues/5535/events","html_url":"https://github.com/jOOQ/jOOQ/issues/5535","id":175571045,"number":5535,"title":"Add support for scala.math.BigDecimal and scala.math.BigInt","user":{"login":"mikebridge","id":213273,"avatar_url":"https://avatars.githubusercontent.com/u/213273?v=3","gravatar_id":"","url":"https://api.github.com/users/mikebridge","html_url":"https://github.com/mikebridge","followers_url":"https://api.github.com/users/mikebridge/followers","following_url":"https://api.github.com/users/mikebridge/following{/other_user}","gists_url":"https://api.github.com/users/mikebridge/gists{/gist_id}","starred_url":"https://api.github.com/users/mikebridge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikebridge/subscriptions","organizations_url":"https://api.github.com/users/mikebridge/orgs","repos_url":"https://api.github.com/users/mikebridge/repos","events_url":"https://api.github.com/users/mikebridge/events{/privacy}","received_events_url":"https://api.github.com/users/mikebridge/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jOOQ/jOOQ/labels/C:%20Functionality","name":"C: Functionality","color":"0000aa"},{"url":"https://api.github.com/repos/jOOQ/jOOQ/labels/C:%20Integration:%20Scala","name":"C: Integration: Scala","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/T:%20Enhancement","name":"T: Enhancement","color":"cccccc"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/jOOQ/jOOQ/milestones/125","html_url":"https://github.com/jOOQ/jOOQ/milestones/Version%203.9.0","labels_url":"https://api.github.com/repos/jOOQ/jOOQ/milestones/125/labels","id":1397345,"number":125,"title":"Version 3.9.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":420,"closed_issues":175,"state":"open","created_at":"2015-11-06T09:31:19Z","updated_at":"2016-09-08T07:26:06Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-09-07T18:15:26Z","updated_at":"2016-09-08T07:30:02Z","closed_at":null,"body":"I get an error `An error ocurred when mapping a record to class MyRecord` when I execute a fetchInto into a scala case class that contains a `BigInt`.  (I'm using JOOQ 3.8.4.)\r\n\r\n```scala\r\nimport collection.JavaConversions._\r\n\r\ncase class MyRecord @ConstructorProperties(Array(\"id\", \"userid\",  /* ... */))(\r\n  id: BigInt,\r\n  userid: UUID,\r\n  // ...\r\n)\r\n\r\n// ...\r\nctx.select(\r\n            MYRECORD.ID,\r\n            MYRECORD.USERID,\r\n            // ...\r\n           )\r\n          .from(MYRECORD)\r\n          .where(MYRECORD.USERID.equal(userid))\r\n          .fetchInto(classOf[MyRecord])\r\n          .headOption\r\n```\r\n\r\nI can work around this by replacing `BigInt` with `java.math.BigInteger`, but is there a way to map correctly to a BigInt?"},"comment":{"url":"https://api.github.com/repos/jOOQ/jOOQ/issues/comments/245516334","html_url":"https://github.com/jOOQ/jOOQ/issues/5535#issuecomment-245516334","issue_url":"https://api.github.com/repos/jOOQ/jOOQ/issues/5535","id":245516334,"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":"2016-09-08T07:30:01Z","updated_at":"2016-09-08T07:30:01Z","body":"Thank you very much for your report. These types are currently not supported out of the box by `org.jooq.tools.Convert`, but I don't see any reason why we shouldn't support them in the future.\r\n\r\nThere's the possibility to override the `DefaultRecordMapper` as documented here, but that would be a bit of work:\r\nhttp://www.jooq.org/doc/latest/manual/sql-execution/fetching/pojos-with-recordmapper-provider\r\n\r\nAnother option would be to overload the case class constructor to support `java.math.BigInteger` and do the conversion manually."}}
{"actor":{"display_login":"lukaseder"}}