• 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: EO: Object Collections?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EO: Object Collections?


  • Subject: Re: EO: Object Collections?
  • From: Ricardo Strausz <email@hidden>
  • Date: Mon, 28 Jul 2003 12:49:39 -0500

On lunes, juli 28, 2003, at 04:52 America/Mexico_City, Goodbye Bill wrote:

SCENARIO:
Assume we have two objects in our model: "Song" and "Genre." The goal is to
be able to assign each "Song" object to multiple "Genre" objects.


QUESTION:
Using the example above, must there be some type of third object -- possibly
a "SongGenreAssignment" object to allow for a many-to-many relationship?

For this, you nead a third table; something like:

Song-->>relatingTable<<--Genre

In your code you may nead something like addToBothSidesOfRelation...


It would appear that EO should take care of this thing automatically if the
developer is to be able to break away from manipulating the database
directly. Unfortunately, there does not appear to be any way to define a
collection of objects within EO, other than using a relationship (which does
not allow for a many-to-many hierarchy).
_______________________________________________
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.
_______________________________________________
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.

References: 
 >EO: Object Collections? (From: Goodbye Bill <email@hidden>)

  • Prev by Date: Saving entities problem [SOLVED]
  • Next by Date: Re: EO: Should I create primary keys?
  • Previous by thread: Re: EO: Object Collections?
  • Next by thread: Re: EO: Object Collections?
  • Index(es):
    • Date
    • Thread