{"action":"created","issue":{"url":"https://api.github.com/repos/valchkou/cassandra-driver-mapping/issues/46","labels_url":"https://api.github.com/repos/valchkou/cassandra-driver-mapping/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/valchkou/cassandra-driver-mapping/issues/46/comments","events_url":"https://api.github.com/repos/valchkou/cassandra-driver-mapping/issues/46/events","html_url":"https://github.com/valchkou/cassandra-driver-mapping/issues/46","id":53667411,"number":46,"title":"EntityTypeParser doesn't parse field properly if the field type and setter parameter type doesn't match","user":{"login":"manzar03","id":2926482,"avatar_url":"https://avatars.githubusercontent.com/u/2926482?v=3","gravatar_id":"","url":"https://api.github.com/users/manzar03","html_url":"https://github.com/manzar03","followers_url":"https://api.github.com/users/manzar03/followers","following_url":"https://api.github.com/users/manzar03/following{/other_user}","gists_url":"https://api.github.com/users/manzar03/gists{/gist_id}","starred_url":"https://api.github.com/users/manzar03/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manzar03/subscriptions","organizations_url":"https://api.github.com/users/manzar03/orgs","repos_url":"https://api.github.com/users/manzar03/repos","events_url":"https://api.github.com/users/manzar03/events{/privacy}","received_events_url":"https://api.github.com/users/manzar03/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/valchkou/cassandra-driver-mapping/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"valchkou","id":6307697,"avatar_url":"https://avatars.githubusercontent.com/u/6307697?v=3","gravatar_id":"","url":"https://api.github.com/users/valchkou","html_url":"https://github.com/valchkou","followers_url":"https://api.github.com/users/valchkou/followers","following_url":"https://api.github.com/users/valchkou/following{/other_user}","gists_url":"https://api.github.com/users/valchkou/gists{/gist_id}","starred_url":"https://api.github.com/users/valchkou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valchkou/subscriptions","organizations_url":"https://api.github.com/users/valchkou/orgs","repos_url":"https://api.github.com/users/valchkou/repos","events_url":"https://api.github.com/users/valchkou/events{/privacy}","received_events_url":"https://api.github.com/users/valchkou/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-01-07T18:55:41Z","updated_at":"2015-01-09T04:24:50Z","closed_at":"2015-01-09T04:24:35Z","body":"Our entity classes are generated by Avro, and when avro generates the class for primitives defined in the avro schema the field in the class is kept as primitive but the getters and setters are boxed. Something like this:\r\n\r\n    class Test {\r\n        private int val;\r\n\r\n        public Integer getVal() {\r\n            return val;\r\n        }\r\n\r\n        public void setVal(Integer val) {\r\n            this.val = val;\r\n        }\r\n    }\r\nWhen we upgraded to the latest version of your library(2.1.4) we started seeing the EntityMetadata objects were missing these kind of autoboxed fields. Digging a bit deeper seems like there was a recent change where you added the check for type in: EntityTypeParser.isSetterFor method:\r\n\r\nif(method.getParameterTypes()[0] != field.getType()) return false)\r\n\r\nSo is it possible for you to handle cases like these where primitive fields have boxed getters and setters?\r\n"},"comment":{"url":"https://api.github.com/repos/valchkou/cassandra-driver-mapping/issues/comments/69291562","html_url":"https://github.com/valchkou/cassandra-driver-mapping/issues/46#issuecomment-69291562","issue_url":"https://api.github.com/repos/valchkou/cassandra-driver-mapping/issues/46","id":69291562,"user":{"login":"valchkou","id":6307697,"avatar_url":"https://avatars.githubusercontent.com/u/6307697?v=3","gravatar_id":"","url":"https://api.github.com/users/valchkou","html_url":"https://github.com/valchkou","followers_url":"https://api.github.com/users/valchkou/followers","following_url":"https://api.github.com/users/valchkou/following{/other_user}","gists_url":"https://api.github.com/users/valchkou/gists{/gist_id}","starred_url":"https://api.github.com/users/valchkou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valchkou/subscriptions","organizations_url":"https://api.github.com/users/valchkou/orgs","repos_url":"https://api.github.com/users/valchkou/repos","events_url":"https://api.github.com/users/valchkou/events{/privacy}","received_events_url":"https://api.github.com/users/valchkou/received_events","type":"User","site_admin":false},"created_at":"2015-01-09T04:24:50Z","updated_at":"2015-01-09T04:24:50Z","body":"fixed"}}