Re: Switching Between Databases

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Thu Jul 19 2007 - 03:31:24 EDT

  • Next message: Andrus Adamchik: "Re: Usage in Axis2"

    > My concern it that the
    > schema name is defined in the cayenne mapping file.

    AFAIK MySQL schema is the same as "database name" part of the URL, so
    use an empty schema and change connection URL.

    Andrus

    On Jul 19, 2007, at 5:23 AM, Malcolm Edgar wrote:

    > Hi All,
    >
    > what is an easy way to switch between databases in Cayenne, while
    > maintaining the same mapping file.
    >
    > We are going on the road doing demos, with different MySQL
    > databases (same
    > schema design), and want to be able to switch between them with the
    > same
    > application. Is there an way to do this is Cayenne. My concern it
    > that the
    > schema name is defined in the cayenne mapping file.
    >
    > Any ideas?
    >
    > regards Malcolm Edgar



    This archive was generated by hypermail 2.0.0 : Thu Jul 19 2007 - 03:32:12 EDT