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