> First off, I understand your situation because I frequently generate
> UI files from my Cayenne models.
Well, than it should be done something about this.
> However, I don't think it's likely that you're going to see the
> ability to custom-order attributes in the modeler as it's outside of
> Cayenne's core functionality to generate UI files from the data model.
Well, than this is sad. I think a confortable Modeler should have
such a thing (plus undo/redo), the help called from the 'Help' menu, etc.
> However, if you're using Cayenne 1.2, the cgen task (when set to
> version=1.2) gives you a great deal of flexibility.
Sorry, but I don't intend to use cgen.
The only reason I use Cayenne is CayenneModeler.
This is the same for many programmers I know.
Everyone who worked with WebObjects has no lust to edit XMLs for such things :).
> You can create a
> new velocity tool that you can inject into your template that can sort
> your attributes and relationships. I'd recommend that such a tool
> read the ordering from a configuration file. That way you can easily
> control the ordering on a per-entity level.
This sounds too complicated to me.
I studied the Cayenne Modeler but it looks just to complicated for me
to extend it.
It seem simpler for me to make new one for my needs directly from the DB Stature :).
> If you decide to create such a tool, consider posting it back here.
> I'd probably use it, and depending on how it's implemented, it might
> even get committed into the cgen package as a default velocity tool.
Of course :).
Ahmed.
This archive was generated by hypermail 2.0.0 : Wed Oct 26 2005 - 19:29:10 EDT