• 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: How to fetch Null objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to fetch Null objects


  • Subject: Re: How to fetch Null objects
  • From: "Ted Archibald" <email@hidden>
  • Date: Tue, 5 Jun 2007 15:17:33 -0600

I forgot to mention that "objectIDPostingsForMonth" is a foreign key and the relationship in the entity Posting is called "postingsForMonth"

On 6/5/07, Ted Archibald <email@hidden> wrote:
Is there a more elegant way of trying to fetch null objects? 

Currently I have an object 'Posting' with a fetch spec 'fetchNullPostingForMonth' with the qualifier '(objectIDPostingsForMonth = nil)'

Then in my code I have:

NSArray results = EOUtilities.objectsWithFetchSpecificationAndBindings( ec, "Posting", "fetchNullPostingForMonth", null);

To me this seems crude, but it does work.  Is there a better way though?

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: How to fetch Null objects
      • From: Pierre Bernard <email@hidden>
References: 
 >How to fetch Null objects (From: "Ted Archibald" <email@hidden>)

  • Prev by Date: How to fetch Null objects
  • Next by Date: Re: How to fetch Null objects
  • Previous by thread: How to fetch Null objects
  • Next by thread: Re: How to fetch Null objects
  • Index(es):
    • Date
    • Thread