{"action":"closed","issue":{"url":"https://api.github.com/repos/dieselpoint/norm/issues/9","repository_url":"https://api.github.com/repos/dieselpoint/norm","labels_url":"https://api.github.com/repos/dieselpoint/norm/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/dieselpoint/norm/issues/9/comments","events_url":"https://api.github.com/repos/dieselpoint/norm/issues/9/events","html_url":"https://github.com/dieselpoint/norm/issues/9","id":110126133,"number":9,"title":"ID data type mismatches in PostgreSQL","user":{"login":"randomf","id":2487162,"avatar_url":"https://avatars0.githubusercontent.com/u/2487162?v=4","gravatar_id":"","url":"https://api.github.com/users/randomf","html_url":"https://github.com/randomf","followers_url":"https://api.github.com/users/randomf/followers","following_url":"https://api.github.com/users/randomf/following{/other_user}","gists_url":"https://api.github.com/users/randomf/gists{/gist_id}","starred_url":"https://api.github.com/users/randomf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/randomf/subscriptions","organizations_url":"https://api.github.com/users/randomf/orgs","repos_url":"https://api.github.com/users/randomf/repos","events_url":"https://api.github.com/users/randomf/events{/privacy}","received_events_url":"https://api.github.com/users/randomf/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2015-10-06T23:57:58Z","updated_at":"2018-05-26T21:37:56Z","closed_at":"2018-05-26T21:37:56Z","author_association":"CONTRIBUTOR","body":"When inserting record to a table with ID defined as \"serial\" data type in PostgreSQL and having @Id @GeneratedValue annotations on getter method in POJO, ID generated and returned by database is of Long type. However when I perform db.results() on the same class IDs are retrieved as Integer. This behaviour leads to type mismatch. Any idea how to approach the fix? Should we automatically convert Integers to Longs where possible and vice versa (if the value doesn't overflow)? Or is there better way?\n"}}
{"actor":{"display_login":"ccleve"}}