• 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: EOGenerator Docs?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EOGenerator Docs?


  • Subject: Re: EOGenerator Docs?
  • From: Mike Schrag <email@hidden>
  • Date: Thu, 29 May 2008 01:29:17 -0400

where can I read about when to use addToClasses vs addToClassesRelationship
, when to use setClass vs setClassRelationship
If you're not using automatic inverse relationship updating from Wonder, addToClasses and setClass set only one side of the relationship (meaning, person.setCompany(company) would set the company of "person" but would not update company.employees()). The xxxRelationship, however, DO set both sides (regardless of whether or not you use Wonder's relationship updating). This is especially important to consider if you bind a WOPopUpButton "selection" to a to- one relationship, because it will only set one side (leaving you with an inconsistent graph). With automatic relationship updating in Wonder, both of these methods are equivalent (setCompany adds to both sides just like setCompanyRelationship).

, and what does the "fetch" parameter do in the calls that return related objects in one to many relationships (just to name a few questions)?
"fetch" will construct a fetchspec and fetch the relationship instead of traversing the to-many via EOF relationship faulting. The benefit here is that for high cardinality relationships, you can avoid faulting in the entire set of related objects and instead just fetch with a qualifier on a subset of them.

ms

_______________________________________________
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


References: 
 >EOGenerator Docs? (From: Jeff Schmitz <email@hidden>)

  • Prev by Date: Re: EOGenerator Docs?
  • Next by Date: Relationship across model boundaries failing
  • Previous by thread: Re: EOGenerator Docs?
  • Next by thread: Relationship across model boundaries failing
  • Index(es):
    • Date
    • Thread