• 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
EOGeneralAdaptorException : deleteRowDescribedByQualifierEntity
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

EOGeneralAdaptorException : deleteRowDescribedByQualifierEntity


  • Subject: EOGeneralAdaptorException : deleteRowDescribedByQualifierEntity
  • From: Marc-Alexis Côté <email@hidden>
  • Date: Sun, 20 Mar 2005 18:49:08 -0500

Hello,
I am a new WebObjects developer and I am struggling with an issue. I am
developing a relatively simple application. I have a Dealer entity which has
a relationship to two Address entities. I get a EOGeneralAdaptorException
(deleteRowDescribedByQualifierEntity) exception when I try to delete a
Dealer entity in the same session that I create it.
At first I created the EOModel so that the address entities would be deleted
when a Dealer is deleted. However, that makes my application crash with the
above exception. If I set the relationship to "Nullify", then I don't get
the exception. This leads me to believe that the problem occurs when
deleting the relationship. In order to further investigate the problem, I
tried deleting the objects by hand:

EOEditingContext ec = session().defaultEditingContext();
Address sAddress = aDealer.shippingAddress();
Address aAddress = aDealer.administrativeAddress();
aDealer.removeObjectFromBothSidesOfRelationshipWithKey(sAddress,
"shippingAddress");
aDealer.removeObjectFromBothSidesOfRelationshipWithKey(aAddress,
"administrativeAddress");
ec.deleteObject(aDealer);
ec.saveChanges();

This works like a charm. However, if I go further along, this is where
things go wrong:

ec.deleteObject(aAddress);
ec.deleteObject(sAddress);
ec.saveChanges();

I get the following exception (which is the same as when the address
relationship is set to cascade):

Application: WoTuppSite
Error: com.webobjects.eoaccess.EOGeneralAdaptorException:
deleteRowDescribedByQualifierEntity --
com.webobjects.jdbcadaptor.JDBCChannel: method failed to delete row in
database
Reason: deleteRowDescribedByQualifierEntity --
com.webobjects.jdbcadaptor.JDBCChannel: method failed to delete row in
database

I know I am doing something wrong, because it works if I close the
application and restart it. Can anyone tell me what I missed?

Thanks,

Marc-Alexis


 _______________________________________________
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: EOGeneralAdaptorException : deleteRowDescribedByQualifierEntity
      • From: Christian Pekeler <email@hidden>
  • Prev by Date: Re: takeValuesFromRequest not triggered
  • Next by Date: Re: Compound primary key generation issue
  • Previous by thread: Re: Compound primary key generation issue
  • Next by thread: Re: EOGeneralAdaptorException : deleteRowDescribedByQualifierEntity
  • Index(es):
    • Date
    • Thread