• 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
Reflexive relationship with same relationship name?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Reflexive relationship with same relationship name?


  • Subject: Reflexive relationship with same relationship name?
  • From: Joe Moreno <email@hidden>
  • Date: Sat, 10 Jul 2010 14:25:07 -0700

Is it possible for EOF to support a reflexive relationship back to the same Entity with the same relationship property name through a flattened many-to-many?

Think of a User entity in the case of LinkedIn where users are "linked" to other users:
User <---->>Connection<<---->User


Connection is the flattened (EOGenericRecord) m:n table with only the foreign keys as its two primary keys. User.connections simply returns all the connected users.

I'm imagining that you'd link them up like this:
userA.addObjectToBothSidesOfRelationshipWithKey(userB, "connection");

Any one with experience/gotchas doing this? (No inheritance involved.)

Thanks,
Joe
_______________________________________________
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: Reflexive relationship with same relationship name?
      • From: Simon <email@hidden>
    • Re: Reflexive relationship with same relationship name?
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: Actions on AjaxComponent are not working....
  • Next by Date: Re: Reflexive relationship with same relationship name?
  • Previous by thread: Re: Actions on AjaxComponent are not working....
  • Next by thread: Re: Reflexive relationship with same relationship name?
  • Index(es):
    • Date
    • Thread