Yeah, I know there'd need to be a lot of CM support added to support it,
which is why I was thinking a templating system of some kind might be
easier if you could provide a data source for the enumeration data. I'm
just not terribly familiar with the Java templating type systems out
there. I'm actually considering a bash script at the moment ...
Suggestions welcome. :-)
Thanks,
/dev/mrg
-----Original Message-----
From: Andrus Adamchik [mailto:andru..bjectstyle.org]
Sent: Monday, June 13, 2005 8:07 PM
To: cayenne-use..bjectstyle.org
Subject: Re: Cayenne Enumerations
On Jun 13, 2005, at 5:50 PM, Gentry, Michael ((Contractor)) wrote:
> I think it would be interesting to have Cayenne Modeler or a
> standalone
> tool/template that could somehow be used to generate the enumeration
> classes from a template, since they are pretty cookie-cutter, if
> given a
> data source.
Well, as of now Modeler won't have enough information to create an
Enum class, as it wouldn't know all allowed values and their symbolic
names.
Actually Modeler support for custom ExtendedTypes is one of the
countless features that I am trying to keep track of. Enums is one
such type that we can support completely via modeler. I think we can
leverage the new class generator extensions that Mike is working on
("datamap" generation mode), but we need more than that to completely
automate it.
Andrus
This archive was generated by hypermail 2.0.0 : Tue Jun 14 2005 - 08:52:29 EDT