{"action":"opened","issue":{"url":"https://api.github.com/repos/realm/realm-java/issues/1185","labels_url":"https://api.github.com/repos/realm/realm-java/issues/1185/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-java/issues/1185/comments","events_url":"https://api.github.com/repos/realm/realm-java/issues/1185/events","html_url":"https://github.com/realm/realm-java/issues/1185","id":85247101,"number":1185,"title":"Query API flawed?","user":{"login":"teddis","id":1139314,"avatar_url":"https://avatars.githubusercontent.com/u/1139314?v=3","gravatar_id":"","url":"https://api.github.com/users/teddis","html_url":"https://github.com/teddis","followers_url":"https://api.github.com/users/teddis/followers","following_url":"https://api.github.com/users/teddis/following{/other_user}","gists_url":"https://api.github.com/users/teddis/gists{/gist_id}","starred_url":"https://api.github.com/users/teddis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teddis/subscriptions","organizations_url":"https://api.github.com/users/teddis/orgs","repos_url":"https://api.github.com/users/teddis/repos","events_url":"https://api.github.com/users/teddis/events{/privacy}","received_events_url":"https://api.github.com/users/teddis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-04T19:43:50Z","updated_at":"2015-06-04T19:43:50Z","closed_at":null,"body":"I'm sorry, I just started using Realm and like it a lot, and haven't had time to check if this has been brought up, so please forgive me and close this out otherwise. It seems as though the API to provide a String fieldname is flawed since it is not checked at compile time, so changing a field name in the model requires a huge effort to modify everywhere. I suppose one way is to just create a public constant in each model class, but this just feels wrong. You could use some kind of reflection, or you could make the fields public in the model, but that would seem to defeat the requirement of using getters/setters. Just curious why this wasn't thought through more."}}