The SQL to set the primary key in MySQL is:

ALTER TABLE TableName ADD PRIMARY KEY (FirstKey, SecondKey);

Dev WO wrote:

I filled the column/table name.
To make sure, I tried on a previous EOModel that worked, and same error, so bugreport tonight;)

But now I feel stupid, because I don't know how to generate my table in MySQL:( I was able to add the first primary key, but it seems I cannot add the second one (index)... Could someone copy/paste something here so I have a sample of the command line I have to enter to generate the join table?

Thanks

Xavier



Dev WO wrote:

Hi list,
just want to make sure it's not my personal setup that cause this  bug:
If I create a new many-to-many relationship in EOModeler (standalone, not the plugin), when I try to generate the SQL I get:
------
ObjCJava WARNING: An error has occurred in the Java Bridge. You should try to save changes and restart your application.
------



Make sure you fill in the table name and column names in the new join table. EOModeler does not do that for you. If you did, then it's a new bug.

-arturo


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/kcarlin%40bifrost.com

This email sent to [EMAIL PROTECTED]


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to