(followup) Many-to-Many relationship remove... failed
(followup) Many-to-Many relationship remove... failed
- Subject: (followup) Many-to-Many relationship remove... failed
- From: Erwin <email@hidden>
- Date: Tue, 7 Sep 2004 17:21:59 +0200
I have been testing the M2M relationship (add/remove) with a very good
example from Stepwise
(creating a reusable many-to-manyy relationship inspector with WO5)
It uses the Movies EOF Model....
when I use Openbase it runs very well... (I used 2 projects to test
boths sides )
but when I switch to a MySQL version of the same database, I got an
error when saving modifications to the database :
[2004-09-07 17:18:42 CEST] <WorkerThread0> An exception occurred while
trying to remove a movie:
com.webobjects.eoaccess.EOGeneralAdaptorException:
lockRowComparingAttributes -- com.webobjects.jdbcadaptor.JDBCChannel:
lock operation locked more than one row
the method I use to save the modification before going back to the Main
page is the following :
public Main SaveModification(){
//Save to the database.
EOEditingContext ec = session().defaultEditingContext();
try {
ec.saveChanges();
} catch (Exception e) {
ec.revert();
NSLog.err.appendln("An exception occurred while trying to remove a
movie: " + e);
}
Main nextPage = (Main)pageWithName("Main");
return nextPage;
}
why MySQL doesn't run as well as OpenBase ????
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.