• 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: CoreData: Fetch instances of entity without returning instances of subentities?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >CoreData: Fetch instances of entity without returning instances of subentities? (From: Jim Correia <email@hidden>)

  • Prev by Date: CoreData: Fetch instances of entity without returning instances of subentities?
  • Next by Date: Re: Release of NSData causes crash
  • Previous by thread: CoreData: Fetch instances of entity without returning instances of subentities?
  • Next by thread: Updating an NSBrowser as binding selection changes
  • Index(es):
    • Date
    • Thread