Hi Örjan,
Thanks for bringing this up about grails. It's great to see how other
technologies approach a given problem and garner (aka - steal) ideas
from them. Although it would be prohibitively difficult (nor desired)
to emulate grails exact approach to scaffolding, #Arch does have a
rather sophisticated scaffolding generator, and a much more extensible
one coming with the RC release (which I've been trying to get ready
for the last week and should have ready very very soon).
To quickly summarize how it'll be done in #Arch RC, you
programmatically create an object called EntityScaffoldingDetails
which holds details such as the entity name, the namespace, along with
property details such as the property name, type, domain signature
inclusion, attributes, default test values, and SQL generation
details.
Billy