• 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: Nead a guru in to-many relations
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Nead a guru in to-many relations


  • Subject: Re: Nead a guru in to-many relations
  • From: Art Isbell <email@hidden>
  • Date: Wed, 30 Jul 2003 12:01:58 -1000

On Wednesday, July 30, 2003, at 10:39  AM, Ricardo Strausz wrote:

How can I neast objects of the same kind over and over??
Is there a usefull db/sql/eof mechanism to perform this??

A relationship whose source and destination entities are the same is called a reflexive relationship. You'll need to add a foreign key to the entity so you can equate the primary key of the source object with the foreign key of the destination objects as with any to-many relationship. EOModeler supports this. You should be able to treat this as with any to-many relationship. With this configuration, the number of levels of relationships is not limited.


I suppose a difficulty with this configuration is how to display the reflexive relationship objects since the number of levels is unlimited. It may not be easy to automatically prefetch all related objects because the number of levels can't be known initially.

	Are there specific questions you have about such a configuration?

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: Nead a guru in to-many relations
      • From: Ricardo Strausz <email@hidden>
References: 
 >Nead a guru in to-many relations (From: Ricardo Strausz <email@hidden>)

  • Prev by Date: Joining Tables Through DirectActions
  • Next by Date: Re: Newbie architecture Q: EOF / Cocoa / Java?
  • Previous by thread: Nead a guru in to-many relations
  • Next by thread: Re: Nead a guru in to-many relations
  • Index(es):
    • Date
    • Thread