{"action":"created","issue":{"url":"https://api.github.com/repos/requery/requery/issues/19","repository_url":"https://api.github.com/repos/requery/requery","labels_url":"https://api.github.com/repos/requery/requery/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/requery/requery/issues/19/comments","events_url":"https://api.github.com/repos/requery/requery/issues/19/events","html_url":"https://github.com/requery/requery/issues/19","id":136981912,"number":19,"title":"Make generated classes \"friend\" classes instead of extending entity class","user":{"login":"nathanieloliveira","id":8465770,"avatar_url":"https://avatars.githubusercontent.com/u/8465770?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanieloliveira","html_url":"https://github.com/nathanieloliveira","followers_url":"https://api.github.com/users/nathanieloliveira/followers","following_url":"https://api.github.com/users/nathanieloliveira/following{/other_user}","gists_url":"https://api.github.com/users/nathanieloliveira/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanieloliveira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanieloliveira/subscriptions","organizations_url":"https://api.github.com/users/nathanieloliveira/orgs","repos_url":"https://api.github.com/users/nathanieloliveira/repos","events_url":"https://api.github.com/users/nathanieloliveira/events{/privacy}","received_events_url":"https://api.github.com/users/nathanieloliveira/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/requery/requery/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"npurushe","id":4143434,"avatar_url":"https://avatars.githubusercontent.com/u/4143434?v=3","gravatar_id":"","url":"https://api.github.com/users/npurushe","html_url":"https://github.com/npurushe","followers_url":"https://api.github.com/users/npurushe/followers","following_url":"https://api.github.com/users/npurushe/following{/other_user}","gists_url":"https://api.github.com/users/npurushe/gists{/gist_id}","starred_url":"https://api.github.com/users/npurushe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npurushe/subscriptions","organizations_url":"https://api.github.com/users/npurushe/orgs","repos_url":"https://api.github.com/users/npurushe/repos","events_url":"https://api.github.com/users/npurushe/events{/privacy}","received_events_url":"https://api.github.com/users/npurushe/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2016-02-27T23:37:22Z","updated_at":"2016-03-06T05:08:54Z","closed_at":null,"body":"What if the generated code used some kind of mapping to persist our entity instead of putting all the information needed in a class that extends it.\r\n\r\nI'm suggesting this because I was trying to make this library (which is good as it is right now, btw) to work together with LoganSquare, the code generated JSON serialization library. The problem arises because you can't serialize a generated entity class as it is not annotated. I don't know if this would be hard to implement or this isn't the purpose of this lib. Maybe add this as an optional way.\r\n\r\nSorry if I wasn't clear enough, English isn't my native language.\r\nThank you "},"comment":{"url":"https://api.github.com/repos/requery/requery/issues/comments/192806694","html_url":"https://github.com/requery/requery/issues/19#issuecomment-192806694","issue_url":"https://api.github.com/repos/requery/requery/issues/19","id":192806694,"user":{"login":"npurushe","id":4143434,"avatar_url":"https://avatars.githubusercontent.com/u/4143434?v=3","gravatar_id":"","url":"https://api.github.com/users/npurushe","html_url":"https://github.com/npurushe","followers_url":"https://api.github.com/users/npurushe/followers","following_url":"https://api.github.com/users/npurushe/following{/other_user}","gists_url":"https://api.github.com/users/npurushe/gists{/gist_id}","starred_url":"https://api.github.com/users/npurushe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npurushe/subscriptions","organizations_url":"https://api.github.com/users/npurushe/orgs","repos_url":"https://api.github.com/users/npurushe/repos","events_url":"https://api.github.com/users/npurushe/events{/privacy}","received_events_url":"https://api.github.com/users/npurushe/received_events","type":"User","site_admin":false},"created_at":"2016-03-06T05:08:54Z","updated_at":"2016-03-06T05:08:54Z","body":"Hi do you have an example of a class you would want to serialize? I have added basic support for @AutoValue which generates its own class, and now with requery for those classes just a mapping class is generated containing just the attribute and mapping info. However it still may require some other changes to work with other libraries."}}