• 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: Simple Many-to-Many Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple Many-to-Many Question


  • Subject: Re: Simple Many-to-Many Question
  • From: Chuck Hill <email@hidden>
  • Date: Fri, 26 Aug 2005 17:02:47 -0700

You should not have to write anything. You need to have two relationships in the model. One, Person ->> PersonInterests you probably already have. Make it not a class property. Then expand the relationship in the left hand pane down to the Interests entity. Then click the Flatten Relationship icon (top, right). Also see "Flattening Relationships" in the docs. Done like this, eogenerator and EOF will take care of the details for you.

This should also be described in Apple's tutorials.

Chuck

On Aug 26, 2005, at 4:55 PM, David Schneider-Joseph wrote:

I have two entity tables, Person and Interest. I also have a many- to-many relationship between People and Interests, in a table named PeopleInterests. I am generating Java source with EOGenerator. How do I write a method for Person which returns an NSArray of all the Interests that person has? EOGenerator doesn't seem to generate the method itself, and nothing I can think of works.

Thanks,
David
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net


This email sent to email@hidden


--
Practical WebObjects - a book for intermediate WebObjects developers who want to increase their overall knowledge of WebObjects, or those who are trying to solve specific application development problems.
http://www.global-village.net/products/practical_webobjects





_______________________________________________ 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: Simple Many-to-Many Question
      • From: David Schneider-Joseph <email@hidden>
References: 
 >Simple Many-to-Many Question (From: David Schneider-Joseph <email@hidden>)

  • Prev by Date: Simple Many-to-Many Question
  • Next by Date: Re: Simple Many-to-Many Question
  • Previous by thread: Simple Many-to-Many Question
  • Next by thread: Re: Simple Many-to-Many Question
  • Index(es):
    • Date
    • Thread