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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to