• 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: Two tables walk into an EO model...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Two tables walk into an EO model...


  • Subject: Re: Two tables walk into an EO model...
  • From: Strausz Riccardo <email@hidden>
  • Date: Mon, 4 Aug 2003 21:44:35 -0500

On domingo, agos 3, 2003, at 04:31 America/Mexico_City, Goodbye Bill wrote:

Okay, last attempt. I THINK I can explain this so that someone can answer
it.... at least, I hope I can...


I have two tables in a many-to-many relationship. I need to be able to use
a qualifier from ONE table and another qualifier for the OTHER table. I
need to return all of those that remain.


Example...

    ENTITY #1: Employee
    idEmployee
    nameFirst
    nameLast
    gender

    ENTITY #2: Office
    idOffice
    name
    postalCode

Again, any amount of employees can be associated to any amount of offices,
so there IS a many-to-many relationship.


Using this example above, I need to find all Employees based on the
following criteria:

    1. Employee must be female; and
    2. Office must be located in the 06492 postal code

How in the world does one do this?

editingContext.objectsWithFetchSpecification(EOFetchSpecification eofs)


Thanx,
"Bill"
_______________________________________________
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: 
 >Two tables walk into an EO model... (From: Goodbye Bill <email@hidden>)

  • Prev by Date: Re: Xcode
  • Next by Date: Re: Relationships with horizontally mapped inheritance
  • Previous by thread: Re: Two tables walk into an EO model...
  • Next by thread: Re: Struggling with qualifiers involving sets
  • Index(es):
    • Date
    • Thread