Re: Re : EOGeneralAdaptorException : deleteRowDescribedByQualifierEntity
Re: Re : EOGeneralAdaptorException : deleteRowDescribedByQualifierEntity
- Subject: Re: Re : EOGeneralAdaptorException : deleteRowDescribedByQualifierEntity
- From: Christian Pekeler <email@hidden>
- Date: Mon, 21 Mar 2005 17:20:17 -0700
When the application is restarted and a dealer is deleted, one of it's
two
addresses are deleted. I have checked the eomodel, and the
relationships
seem to be pointing at the right place.
I think there might be something wrong in your model. Can we see it?
Note that in my previous example, I
was incorrectly using addToBothSidesOfRelationshipWithKey and
removeObjectFrom... when the relationships were unidirectional.
That's OK, those methods can deal with unidirectional relationships.
Address shippingAddress =
(Address)addressDescription.
createInstanceWithEditingContext(ec, null);
ec.insertObject(shippingAddress);
EOClassDescription.createInstanceWithEditingContext() is already
inserting the object into the editing context. I suggest you take out
all that class description stuff and either use
Address shippingAddress = new Address();
ec.insertObject(shippingAddress);
or
Address shippingAddress =
(Address)EOUtilities.createAndInsertObject(ec, "Address");
Christian
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden