{"action":"created","issue":{"url":"https://api.github.com/repos/hyperoslo/NSManagedObject-HYPPropertyMapper/issues/44","labels_url":"https://api.github.com/repos/hyperoslo/NSManagedObject-HYPPropertyMapper/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/hyperoslo/NSManagedObject-HYPPropertyMapper/issues/44/comments","events_url":"https://api.github.com/repos/hyperoslo/NSManagedObject-HYPPropertyMapper/issues/44/events","html_url":"https://github.com/hyperoslo/NSManagedObject-HYPPropertyMapper/issues/44","id":59239130,"number":44,"title":"Support for code tables ","user":{"login":"kostiakoval","id":1086260,"avatar_url":"https://avatars.githubusercontent.com/u/1086260?v=3","gravatar_id":"","url":"https://api.github.com/users/kostiakoval","html_url":"https://github.com/kostiakoval","followers_url":"https://api.github.com/users/kostiakoval/followers","following_url":"https://api.github.com/users/kostiakoval/following{/other_user}","gists_url":"https://api.github.com/users/kostiakoval/gists{/gist_id}","starred_url":"https://api.github.com/users/kostiakoval/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kostiakoval/subscriptions","organizations_url":"https://api.github.com/users/kostiakoval/orgs","repos_url":"https://api.github.com/users/kostiakoval/repos","events_url":"https://api.github.com/users/kostiakoval/events{/privacy}","received_events_url":"https://api.github.com/users/kostiakoval/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hyperoslo/NSManagedObject-HYPPropertyMapper/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/hyperoslo/NSManagedObject-HYPPropertyMapper/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-27T13:58:31Z","updated_at":"2015-04-07T05:50:48Z","closed_at":null,"body":"I want to have custom type mapping. From String to Int, \r\n\r\nExample: \r\nI want this object to maps\r\n```\r\nThis JSON\r\n{\r\n  \"organization_type\": \"Company\"\r\n}\r\n\r\nTo that object\r\n\r\n@interface object  : NSManagedObject {}\r\n@property (nonatomic, strong) NSNumber* organizationType;\r\n@end\r\n````\r\n\r\n\"Company\" -> 0\r\n\"Region\" -> 1\r\n\r\nI think the mapping logic should be implemented by users, in the callback fuction or some params"},"comment":{"url":"https://api.github.com/repos/hyperoslo/NSManagedObject-HYPPropertyMapper/issues/comments/90373086","html_url":"https://github.com/hyperoslo/NSManagedObject-HYPPropertyMapper/issues/44#issuecomment-90373086","issue_url":"https://api.github.com/repos/hyperoslo/NSManagedObject-HYPPropertyMapper/issues/44","id":90373086,"user":{"login":"kostiakoval","id":1086260,"avatar_url":"https://avatars.githubusercontent.com/u/1086260?v=3","gravatar_id":"","url":"https://api.github.com/users/kostiakoval","html_url":"https://github.com/kostiakoval","followers_url":"https://api.github.com/users/kostiakoval/followers","following_url":"https://api.github.com/users/kostiakoval/following{/other_user}","gists_url":"https://api.github.com/users/kostiakoval/gists{/gist_id}","starred_url":"https://api.github.com/users/kostiakoval/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kostiakoval/subscriptions","organizations_url":"https://api.github.com/users/kostiakoval/orgs","repos_url":"https://api.github.com/users/kostiakoval/repos","events_url":"https://api.github.com/users/kostiakoval/events{/privacy}","received_events_url":"https://api.github.com/users/kostiakoval/received_events","type":"User","site_admin":false},"created_at":"2015-04-07T05:50:48Z","updated_at":"2015-04-07T05:50:48Z","body":"sounds good. only 1 think I don't like specifying those attributes in CoreData Info, it's quite hard and not convenient. \r\n\r\nWhy should you make those limitation (if the value is a string)\r\nif code table existing just map them. \r\n[COMPANY_PREFIX][VALUE][ATTRIBUTE_NAME]  - I'm not sure I get this one but general ides is very good."}}