I have a Java server application and a Flex client application. For my data model, I have typical objects, like User etc., that are basically the same in the database, the server-side Java code and the client-side AS code. I. e., the public fields of my AS and Java classes are named identically, and have the same types and values as the respective fields in the database table which has the same name as those classes.
For the Java classes and the DB tables to match, I can use any ORM. Are there any tools to have the AS classes (and, ideally, the matching Remoting boilerplate code) autogenerated from the Java ones as well? I had a short look at BlazeDS, but it didn’t seem to have tools like that, at least I couldn’t find anything about it.
Of course, in a perfect world, I’d describe my data items once and have the DDL, Java code and AS code all autogenerated. Does such a tool exist, and is it usable enough?
Oh yeah, and it would be great if the source format could be protobuf files…
Note: This seems to be the same question as this one. The answers there seem to indicate that at least there’s no common tool that “everybody uses” or that has a reputation for high quality.
You can start here : http://www.graniteds.org/confluence/display/DOC/2.+Gas3+Code+Generator