• 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
How to debug fetch problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to debug fetch problem


  • Subject: How to debug fetch problem
  • From: Janine Sisk <email@hidden>
  • Date: Mon, 9 Apr 2007 19:08:45 -0700

I've just attempted my first fetch, and predictably it's not working.  This code:

        EOEditingContext ec = session().defaultEditingContext();
        EOFetchSpecification fs = EOFetchSpecification.fetchSpecificationNamed("getAllPanels", "LicensePlate");
        NSArray result = ec.objectsWithFetchSpecification(fs);

results in an NPE on the last line.

I am not at all sure I created the fetch spec right;  the fspec file contains:

{
    getAllPanels =
    {
        class = EOFetchSpecification;
        entityName = Panel;
        prefetchingRelationshipKeyPaths =
        ();
        sortOrderings =
        (
          
           {
               class = EOSortOrdering;
               key = description;
               selectorName = ascending;
           }
        );
    };
}

How do I go about figuring out what I've done wrong?

thanks,

janine

 _______________________________________________
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 debug fetch problem
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: DisplayGroup Basics
  • Next by Date: Re: How to debug fetch problem
  • Previous by thread: Re: Mapping PSQL Boolean into Java Number
  • Next by thread: Re: How to debug fetch problem
  • Index(es):
    • Date
    • Thread