Hi,

in another thread I was having Trouble with my generated model. Now I had the 
idea that it might be a good idea to develop a common set of templates/best 
practices for generating ActionScript model from a Java model.

In Flexmojos we use GraniteDS' Generator to generate code automatically. The 
Default templates seem to work quite well with GraniteDS. When using BlazeDS I 
had to modify These templates a Little to utilize the different mapping of 
Collections, Maps and Enums.

I guess the original templates were not implemented to generate ideal code and 
would like to start developing best-practice templates together with other 
users here. Just as an example it seems to be bad style to simply add 
[Bindable] on class-level.

I documented my model-Generation on my Wiki years ago ...
https://dev.c-ware.de/confluence/display/PUBLIC/Generating+your+model
Would be glad to have multiple sets of official templates for different 
Scenarios:
- BlazeDS Backend
- High Performance BlazeDS (With legacy-collections Setting enabled in BlazeDS)
- GraniteDS Backend

Aggregating some General best practise rules for code Generation should help 
others quite a lot.

What do you think about that?
    Chris

Reply via email to