• 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: refresh an enterprise object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: refresh an enterprise object


  • Subject: Re: refresh an enterprise object
  • From: Art Isbell <email@hidden>
  • Date: Mon, 21 Jun 2004 16:22:06 -1000

On Jun 21, 2004, at 3:58 PM, Nathan Dumar wrote:

I think aProduct is an EO. Are you sure addObjectToBothSidesOfRelationshipWithKey is a method in an EO?

EO's inherit from EOGenericRecord or EOCustomObject, both of which implement EORelationshipManipulation which declares addObjectToBothSidesOfRelationshipWithKey().


I haven't needed to use it yet, so I don't know much about it.

You may not have thought you needed to use it yet :-) But it really should be used, along with removeObjectFromBothSidesOfRelationshipWithKey(), whenever a relationship value is set. It works with relationships of all cardinalities and whether an inverse relationship has been defined. This allows one to add or remove an inverse relationship from an eomodel without changing Java code.


Not using these methods risks rendering the object graph inconsistent which may have been the problem that spawned the original question in this thread.

Aloha,
Art
_______________________________________________
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.


  • Follow-Ups:
    • Re: refresh an enterprise object
      • From: Nathan Dumar <email@hidden>
References: 
 >refresh an enterprise object (From: Goh Keng Boon <email@hidden>)
 >Re: refresh an enterprise object (From: Nathan Dumar <email@hidden>)
 >Re: refresh an enterprise object (From: Nathan Dumar <email@hidden>)

  • Prev by Date: Re: Off Topic : WWDC Birds of Feather
  • Next by Date: UTF-8 Encoding questions for formValues() for non WO html fields
  • Previous by thread: Re: refresh an enterprise object
  • Next by thread: Re: refresh an enterprise object
  • Index(es):
    • Date
    • Thread