{"action":"created","issue":{"url":"https://api.github.com/repos/javalite/activejdbc/issues/375","labels_url":"https://api.github.com/repos/javalite/activejdbc/issues/375/labels{/name}","comments_url":"https://api.github.com/repos/javalite/activejdbc/issues/375/comments","events_url":"https://api.github.com/repos/javalite/activejdbc/issues/375/events","html_url":"https://github.com/javalite/activejdbc/issues/375","id":59601321,"number":375,"title":"Should use Long not Integer for PK","user":{"login":"ipolevoy","id":500941,"avatar_url":"https://avatars.githubusercontent.com/u/500941?v=3","gravatar_id":"","url":"https://api.github.com/users/ipolevoy","html_url":"https://github.com/ipolevoy","followers_url":"https://api.github.com/users/ipolevoy/followers","following_url":"https://api.github.com/users/ipolevoy/following{/other_user}","gists_url":"https://api.github.com/users/ipolevoy/gists{/gist_id}","starred_url":"https://api.github.com/users/ipolevoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ipolevoy/subscriptions","organizations_url":"https://api.github.com/users/ipolevoy/orgs","repos_url":"https://api.github.com/users/ipolevoy/repos","events_url":"https://api.github.com/users/ipolevoy/events{/privacy}","received_events_url":"https://api.github.com/users/ipolevoy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-03T06:31:53Z","updated_at":"2015-03-03T06:34:30Z","closed_at":null,"body":"Please, see: http://stackoverflow.com/questions/28821133/is-it-possible-to-use-long-fk-in-activejdbc for more details. \r\n"},"comment":{"url":"https://api.github.com/repos/javalite/activejdbc/issues/comments/76894509","html_url":"https://github.com/javalite/activejdbc/issues/375#issuecomment-76894509","issue_url":"https://api.github.com/repos/javalite/activejdbc/issues/375","id":76894509,"user":{"login":"ipolevoy","id":500941,"avatar_url":"https://avatars.githubusercontent.com/u/500941?v=3","gravatar_id":"","url":"https://api.github.com/users/ipolevoy","html_url":"https://github.com/ipolevoy","followers_url":"https://api.github.com/users/ipolevoy/followers","following_url":"https://api.github.com/users/ipolevoy/following{/other_user}","gists_url":"https://api.github.com/users/ipolevoy/gists{/gist_id}","starred_url":"https://api.github.com/users/ipolevoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ipolevoy/subscriptions","organizations_url":"https://api.github.com/users/ipolevoy/orgs","repos_url":"https://api.github.com/users/ipolevoy/repos","events_url":"https://api.github.com/users/ipolevoy/events{/privacy}","received_events_url":"https://api.github.com/users/ipolevoy/received_events","type":"User","site_admin":false},"created_at":"2015-03-03T06:34:30Z","updated_at":"2015-03-03T06:34:30Z","body":"Code of interest: \r\n\r\n```\r\nList<Map> results = new DB(getMetaModelLocal().getDbName()).findAll(query, Integer.parseInt(fkValue));\r\n```\r\nWhy are we converting a FK to Integer in the first place? Should we just leave it as is? "}}