Fetching the next child object [NEWBIE]
Fetching the next child object [NEWBIE]
- Subject: Fetching the next child object [NEWBIE]
- From: Goodbye Bill <email@hidden>
- Date: Fri, 27 Jun 2003 01:52:52 -0400
Is it possible to fetch the next child object without having to re-specify
parameters of the parent object?
DETAILS:
1. I have three objects in my database that have a parent-child
relationship. For now, let's say they are:
Musician
Album
Song
2. I have fetched a specific "Musician" object using an EOFetchSpecification
and have that object loaded in memory;
3. I would like to simply get a single Album by specifying the "Title."
WHERE I AM:
The only way I can figure to do this is pull the ID of the Musician object
and then use an AndQualifier with the "Title" AND the "ID" of the parent
musician.
I know there must be a better (and simpler) way. Any examples would be
greatly appreciated. Please remember, I'm coming from a Microsoft/SQL
environment so it may simply be natural for me to stray back there.
Thanks, in advance. =S
_______________________________________________
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.