Re: DbGenerator

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Tue Mar 07 2006 - 11:05:17 EST

  • Next message: Paul Furbacher: "Re: DbGenerator"

    On Mar 7, 2006, at 7:03 PM, Andrus Adamchik wrote:

    > 2. Here is a manual solution. If you are running DbGenerator from
    > the code (not the Modeler), you can change the adapter back to
    > "org.objectstyle.cayenne.dba.mysql.MySQLAdapter" and inside your
    > code call "setSupportsFkConstraints(true)":
    >
    > DbAdapter adapter = ...
    > ((MySQLAdapter) adapter).setSupportsFkConstraints(true);

    Hmm... on the other hand if the default is not InnoDB, we also need
    to change CREATE TABLE syntax to enforce InnoDB. I need to patch the
    adapter further.

    Andrus



    This archive was generated by hypermail 2.0.0 : Tue Mar 07 2006 - 11:05:21 EST