• 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: Fetch Specifications and boolean values
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fetch Specifications and boolean values


  • Subject: Re: Fetch Specifications and boolean values
  • From: Art Isbell <email@hidden>
  • Date: Fri, 21 Apr 2006 16:20:30 -1000

On Apr 21, 2006, at 4:03 PM, Daniel DeCovnick wrote:

I THINK 1 is working. It's generating what looks like valid SQL at least:
SELECT customerID FROM CUSTOMER WHERE hasShipped = ? AND customerID = customerID ORDER BY creationTime asc

Isn't hasShipped a QueueSpot property?  If so, the above SQL is invalid.

Hmm... I think I may be misinterpreting the nature of fetch requests then. Given a particular customer, I want to get an array of all their queuespots which have shipped. Something I could call like:

NSArray history = customer.shippingHistory(); 
or 
NSArray history = shippingHistory(session().defaultEditingContext()); 
whichever's appropriate.

NSArray history =  EOUtilities.objectsWithQualifierFormat(session().defaultEditingContext(), "QueueSpot", "customer = $@ and hasShipped = $@", new NSArray(new Object[] {customer, Boolean.TRUE)});

Aloha,
Art

 _______________________________________________
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: Fetch Specifications and boolean values
      • From: Chuck Hill <email@hidden>
References: 
 >Fetch Specifications and boolean values (From: Daniel DeCovnick <email@hidden>)
 >Re: Fetch Specifications and boolean values (From: Chuck Hill <email@hidden>)
 >Re: Fetch Specifications and boolean values (From: Daniel DeCovnick <email@hidden>)
 >Re: Fetch Specifications and boolean values (From: Chuck Hill <email@hidden>)
 >Re: Fetch Specifications and boolean values (From: Daniel DeCovnick <email@hidden>)

  • Prev by Date: Re: Fetch Specifications and boolean values
  • Next by Date: Re: Fetch Specifications and boolean values
  • Previous by thread: Re: Fetch Specifications and boolean values
  • Next by thread: Re: Fetch Specifications and boolean values
  • Index(es):
    • Date
    • Thread