Re: CoreData: Fetch instances of entity without returning instances of subentities?
Re: CoreData: Fetch instances of entity without returning instances of subentities?
- Subject: Re: CoreData: Fetch instances of entity without returning instances of subentities?
- From: Jim Correia <email@hidden>
- Date: Tue, 2 May 2006 20:58:12 -0400
After re-reading my post, I realize that the question is probably not
100% clear, so I'll try again.
Suppose that I have a data model with a non-abstract base entity
with several sub-entities.
For example a concrete base entity of Shape, and a sub-entity
Rectangle. (I know it doesn't make a lot of sense in isolation - it
is just an example.)
When I execute a fetch request for the entity Shape, I get back all
the Shape instances and all the Rectangle instances. This is normally
what I want.
I now have a special case where I need all the instances of Shape
whose entity is exactly Shape (rather than Shape or a sub-entity of
Shape.)
Is it possible to express this in a fetch request? Or is post-
filtering the results the only way to fly?
Thanks,
Jim
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden