Re: Problem: generating SQL for many-to-many relationships using EOModeler and OpenBase
Re: Problem: generating SQL for many-to-many relationships using EOModeler and OpenBase
- Subject: Re: Problem: generating SQL for many-to-many relationships using EOModeler and OpenBase
- From: Ricardo Strausz <email@hidden>
- Date: Mon, 5 May 2003 14:20:54 -0500
Do you have the problem when using Java 1.3??
On viernes, mayo 2, 2003, at 14:45 America/Mexico_City, Tom Woteki
wrote:
I am having problems generating SQL for an OpenBase database using
EOModeler and OpenBase 7.0.12 on OSX 10.2.5 with Java 1.4.x.
Additionally, my WebObjects apps throw exceptions when I do manage to
generate the SQL, as described below, though the generation is clearly
suspect.
Here is a simple setup: 2 entities Foo and Bar joined in a
many-to-many using a correlation table BarFoo.
1) When I go to generate sql with the "Primary Key Constraints"
checkbox in the SQL Generation dialog window checked, I get the
following alert: "*** -[NSCFDictionary setObject:forKey:]: attempt to
insert nil value" and no SQL is generated
2) If I uncheck the checkbox, SQL is generated but the resulting app
throws an exception. I can provide a stack trace.
3) If recheck the preceding checkbox while the dialog window is open I
get the following alert:
"An unexpected error has occurred which may cause EOModeler to
malfunction. You may want to save copies of your open documents and
quit EOModeler.
Error: NSInvalidArgumentException: *** -[NSCFDictionary
setObject:forKey:]: attempt to insert nil value
Stack Trace:
NSInvalidArgumentException: *** -[NSCFDictionary setObject:forKey:]:
attempt to insert nil value
at
com.apple.cocoa.foundation.NSMutableDictionary.setObjectForKey(Native
Method)
at
OpenBasePlugIn$OpenBaseSynchronizationFactory.primaryKeyConstraintState
mentsForEntityGroup(OpenBasePlugIn.java:237)
at
EOSynchronizationFactory.primaryKeyConstraintStatementsForEntityGroups(
EOSynchronizationFactory.java:529)
at
EOSynchronizationFactory.schemaCreationStatementsForEntities(EOSynchron
izationFactory.java:862)
at
EOSynchronizationFactory.schemaCreationScriptForEntities(EOSynchronizat
ionFactory.java:663)"
Note that all this misbehavior occurs whether or not I use EOModeler's
menu command for auto-generating a many to many relationship. I can
duplicate the problem on 2 different machines.
Help?
TIA,
Tom
_______________________________________________
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.
_______________________________________________
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.