• 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
Best way to update relationships on fetch
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Best way to update relationships on fetch


  • Subject: Best way to update relationships on fetch
  • From: Ray Ackland <email@hidden>
  • Date: Sun, 12 Oct 2003 11:44:17 +1300

Sorry the title couldn't be more descriptive :)

I am working with two tables - people (who have a dob) and age groupings. The idea is to classify people into different tiers based on their age, and report on the numbers of people in each group.

The problem I am faced with is how to update the relationship between the individual people and the category they fit into. I need to update the relationships as I am preparing the report (not when the people are added to the database) because the user will have the ability to alter the age ranges for each group, not to mention people moving from one group to the next as they age.

One possibility I have imagined is using the awake from fetch to check/correct the ageGroupID (foreign key) as each person is loaded. I believe the problem with this is that the fetch has already happened, and the relationship would need to be invalidated and re-fetched before the report can be created. Would this cause a loop? Can I just invalidate the relationships to achieve this? Is this re-faulting?

As frustrating as all this is, I must admit that there is some enjoyment to adding a little bit more knowledge to my WO understanding each time I overcome another obstacle (as Steve Jobs said - "5% down, 95% to go").

Ray.
_______________________________________________
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: Best way to update relationships on fetch
      • From: John Boynton <email@hidden>
    • Re: Best way to update relationships on fetch
      • From: John Boynton <email@hidden>
    • Re: Best way to update relationships on fetch
      • From: Chuck Hill <email@hidden>
    • Re: Best way to update relationships on fetch
      • From: Arturo PĂ©rez <email@hidden>
  • Prev by Date: Help with understanding relationships
  • Next by Date: RE: Announcements list (was Grumbling McCreyekes)
  • Previous by thread: Re: Help with understanding relationships
  • Next by thread: Re: Best way to update relationships on fetch
  • Index(es):
    • Date
    • Thread