Re: Cayenne Enumerations

From: Mike Kienenberger (mkienen..laska.net)
Date: Tue Jun 14 2005 - 11:17:54 EDT

  • Next message: Andrus Adamchik: "Re: Cayenne Enumerations"

    "Gentry, Michael (Contractor)" <michael_gentr..anniemae.com> 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. If anyone has ideas in this regard, please post them
    > (remember, I'm an Objective-C hack trying to do some Java).

    For class generation, create a java class that provides or generates the
    enumeration as a Collection, List, Iterator, Vector, or whatever. Use cgen
    v1.2 to add that class as a tool into the class generation velocity context.
     Modify the default template to #foreach over that enumeration.



    This archive was generated by hypermail 2.0.0 : Tue Jun 14 2005 - 11:15:21 EDT