Re: Indices

From: Borut Bolčin (cayenn..mail.si)
Date: Fri Jan 07 2005 - 10:42:09 EST

  • Next message: Borut Bolčin: "Re: Indices"

    Hi Mike, see below...

    On 6.1.2005 18:36, Mike Kienenberger wrote:

    >=?UTF-8?B?Qm9ydXQgQm9sxI1pbmE=?= <cayenn..mail.si> wrote:
    >
    >
    >>How do I create the last three "rows" in the above example in Cayenne
    >>and what would be the best approach to create such db table at my
    >>application startup period?
    >>
    >>
    >
    >There's currently no support in the Cayenne api for doing database
    >"metadata" manipulation other than by sending raw sql.
    >
    >We've talked about adding index support to the modeller, and I think it
    >could happen sometime during 1.2's lifetime.
    >
    >There's java code to do database generation in the modeler source tree, but
    >I don't know how externally accessible it is.
    >
    >Other possiblities are to look at ant's sql task, possibly calling that
    >directly from your java code.
    >
    >
    What you are saying is, that there is no way in Cayenne to create a
    database table programmatically - through API I mean?

    >I think there's probably some interest in adding such metadata support to
    >Cayenne, but I don't think it's currently a high priority. But, as they
    >say, patches are always welcome.
    >
    >-Mike
    >
    >



    This archive was generated by hypermail 2.0.0 : Fri Jan 07 2005 - 10:42:18 EST