• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Re : EOGeneralAdaptorException : deleteRowDescribedByQualifierEntity
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re : Re : EOGeneralAdaptorException : deleteRowDescribedByQualifierEntity
      • From: Marc-Alexis Côté <email@hidden>
References: 
 >Re : EOGeneralAdaptorException : deleteRowDescribedByQualifierEntity (From: Marc-Alexis Côté <email@hidden>)

  • Prev by Date: Re: Re : EOGeneralAdaptorException : deleteRowDescribedByQualifierEntity
  • Next by Date: Re : Re : EOGeneralAdaptorException : deleteRowDescribedByQualifierEntity
  • Previous by thread: Re: Re : Re : EOGeneralAdaptorException : deleteRowDescribedByQualifierEntity
  • Next by thread: Re : Re : EOGeneralAdaptorException : deleteRowDescribedByQualifierEntity
  • Index(es):
    • Date
    • Thread