Re: Dynamic Data Maps

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Wed Jan 18 2006 - 11:31:24 EST

  • Next message: Dov Rosenberg: "EOUtilities.rawRowsForSQL?"

    On Jan 18, 2006, at 11:24 AM, Mike Kienenberger wrote:

    > On 1/17/06, Jonathan Carlson <Jonathan.Carlso..atun.com> wrote:
    >> development time. The one critical missing piece that I didn't
    >> mention
    >> before is that Groovy could relatively easily make a
    >> CayenneDataObject
    >> look like a regular Groovy Bean (just subclass CayenneDataObject
    >> with a
    >> class that implements GroovyObject).
    >
    > If that's all you need, simply change your subclass.vm or
    > superclass.vm template to implement it. Then your classes will
    > automatically be generated with it, and you can use them as-is.

    I guess here we are talking about everything being dynamic in a sense
    that DataMap is created in runtime via DbLoader, so there is no class
    generation step.

    But in any event it should be fairly easy to (e.g. by pasting
    CayenneDataObject code in a subclass of a needed Groovy class) ... I
    just don't know Groovy to suggest anything more specific.

    Andrus



    This archive was generated by hypermail 2.0.0 : Wed Jan 18 2006 - 11:31:25 EST