I'm using Sparkx EA to model the class structure of a large Java application. I've recently experimented with Spring ROO and was impressed with its capabilities, and so would like to be able to output Spring ROO statements describing entities, attributes, and relationships. The ROO syntax for these is fairly simple: command line syntax with parameters to express Java Persistence Arch entities, attributes, and relationships. Here are some ROO syntax examples:
entity --class ~.domain.Vet --extends ~.domain.AbstractPerson --testAutomatically
entity --class ~.domain.Owner --extends ~.domain.AbstractPerson --testAutomatically
field string --fieldName firstName --sizeMin 3 --sizeMax 30 --class ~.domain.AbstractPerson
field string --fieldName lastName --notNull --sizeMin 3 --sizeMax 30
field string --fieldName address --notNull --sizeMax 50 --sizeMin 1
field string --fieldName city --notNull --sizeMax 30
field reference --fieldName pet --type ~.domain.Pet --notNull
field reference --fieldName vet --type ~.domain.Vet
I'm looking for a way - ideally a scripting language that would navigate my UML class model and allow me to generate the Spring ROO statements from the UML Class model.
Ideally, a generation script would make two passes through the class model: once to output the ROO entity and attribute statements and a secon pass to output the relationship (reference statements).
Now, I am running the Coorporate Edition, and have been very confused by the MDG offerings (what they do, whether I need them, etc.). So my questions are:
Is there a way to write generation scripts and run them using the Corporate Edition, or do I need to purchase an add-on or more capable edition?
Are there sample scripts that navigate top down through a class model from model, to package to class to attribute, ...?
Thanks,
Brian