RFE JSON encoding/decoding for models
Until now I used a lot PropertyBusinessObject to store the data. I'm used to create the app database using almost only PropertyBusinessObject objects. They are very convenient to exchange data with any external service, because they can seamlessly be converted to JSON and populated from JSON. Moreover, the RequestBuilder class offers method to send a PropertyBusinessObject object as body request and to fetch a PropertyBusinessObject object as the result of a request. At the moment, I consider the PropertyBusinessObject class as fundamental.
Your new CodeRAD model is very interesting, but it introduces a new way to store data in Entity objects. That makes sense, but do we lost all the advantages of the PropertyBusinessObject class? How can I use the CoreRAD concepts while maintaining all the advantages of the PropertyBusinessObject class in REST requests?
Thank you
This is on my list of things. The view models are designed to make conversion to other formats easy. I chose not to use PropertyBusinessObject because it wasn't quite right for the full scope of code rad. However I do plan to replicate all useful aspects of PropertyBusinessObjects, and provide easy versions to/from property business objects.
Closely related to https://github.com/shannah/CodeRAD/issues/5
I have added support for decoding Entities from JSON and XML. Converting from Entity to JSON/XML is an easier task that is still pending. Support for decoding from JSON/XML is described here: https://shannah.github.io/CodeRAD/manual/#_serialization_working_with_xml_and_json