{"action":"opened","issue":{"url":"https://api.github.com/repos/Raizlabs/DBFlow/issues/1030","repository_url":"https://api.github.com/repos/Raizlabs/DBFlow","labels_url":"https://api.github.com/repos/Raizlabs/DBFlow/issues/1030/labels{/name}","comments_url":"https://api.github.com/repos/Raizlabs/DBFlow/issues/1030/comments","events_url":"https://api.github.com/repos/Raizlabs/DBFlow/issues/1030/events","html_url":"https://github.com/Raizlabs/DBFlow/issues/1030","id":184380924,"number":1030,"title":"Add support for custom type converters to override default implementations.","user":{"login":"trevjonez","id":5386503,"avatar_url":"https://avatars.githubusercontent.com/u/5386503?v=3","gravatar_id":"","url":"https://api.github.com/users/trevjonez","html_url":"https://github.com/trevjonez","followers_url":"https://api.github.com/users/trevjonez/followers","following_url":"https://api.github.com/users/trevjonez/following{/other_user}","gists_url":"https://api.github.com/users/trevjonez/gists{/gist_id}","starred_url":"https://api.github.com/users/trevjonez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trevjonez/subscriptions","organizations_url":"https://api.github.com/users/trevjonez/orgs","repos_url":"https://api.github.com/users/trevjonez/repos","events_url":"https://api.github.com/users/trevjonez/events{/privacy}","received_events_url":"https://api.github.com/users/trevjonez/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-21T01:43:15Z","updated_at":"2016-10-21T01:43:15Z","closed_at":null,"body":"DBFlow Version: 4.+\r\nIssue Kind (Bug, Question, Feature): Feature\r\n\r\nDescription: \r\nAt current DBFlow 4 ships with default converters for types such as `java.util.Date`, `java.util.Calendar`, and `java.util.UUID`. \r\n\r\nIn my work flow we have a case where there is a \"magic number\" for all of these types that specify that the value should be treated as null but it still needs to be sent to the server. Due to limitations with protocols outside of our control we must send any parameter being set as null as a string \"_-NULL-_\". \r\n\r\nSo it would be great to be able to customize the UUID converter implementation so that the database entries read as \"_-NULL-_\". This sort of thing helps with debugging sessions since any direct monitoring of database values results in a human readable format.\r\n\r\nAs always I would be glad to implement, just want to spur a discussion about how to proceed. \r\n\r\nIdeally I think we should make the general structure of the configuration portions injectible to allow for more advanced configurations. Also there are quite a few other options exposed by the android DB system that are not exposed and you have to do some not so friendly things to hook into the underlying API's. Maybe a good time to revisit some of the config and holder structuring."}}
{"actor":{"display_login":"trevjonez"}}