• 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
Inverse Relationships
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Inverse Relationships


  • Subject: Inverse Relationships
  • From: "Mr. Frank Cobia" <email@hidden>
  • Date: Tue, 28 Apr 2009 10:12:05 -0400

If I am using the EOGenerator files from WOLips is there not a way to update a relationship without automatically updating the inverse relationship? If I just call setProperty() then the inverse relationship will get called. I had thought if I called setPropertyRelationship() with er.extensions.ERXEnterpriseObject.updateInverseRelationships=false I would get the desired behavior, but it seems that setPropertyRelationship() always updates the inverse relationship. For example:

  public void setSetasideCodeRelationship(com.ods.wo.bids.db.SetasideCode value) {
    if (_Bid.LOG.isDebugEnabled()) {
      _Bid.LOG.debug("updating setasideCode from " + setasideCode() + " to " + value);
    }
    if (er.extensions.eof.ERXGenericRecord.InverseRelationshipUpdater.updateInverseRelationships()) {
    setSetasideCode(value);
    }
    else if (value == null) {
    com.ods.wo.bids.db.SetasideCode oldValue = setasideCode();
    if (oldValue != null) {
    removeObjectFromBothSidesOfRelationshipWithKey(oldValue, "setasideCode");
      }
    } else {
    addObjectToBothSidesOfRelationshipWithKey(value, "setasideCode");
    }
  }
 


So even if er.extensions.ERXEnterpriseObject.updateInverseRelationships is false it still calls either addObjectsToBothSidesOfRelationshipWithKey() or removeObjectFromBothSidesOfRelationshipWithKey(). Is this correct? If so, is there a way to do this through the generated files?

Thanks,
Frank
 _______________________________________________
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: Inverse Relationships
      • From: Stamenkovic Florijan <email@hidden>
    • Re: Inverse Relationships
      • From: David Avendasora <email@hidden>
  • Prev by Date: Re: [ANN] AjaxDatePicker and AjaxDefaultSubmitButton
  • Next by Date: Re: Inverse Relationships
  • Previous by thread: Re: Session IDs in Cookies
  • Next by thread: Re: Inverse Relationships
  • Index(es):
    • Date
    • Thread