Re: Fetch Specifications and boolean values
Re: Fetch Specifications and boolean values
- Subject: Re: Fetch Specifications and boolean values
- From: Chuck Hill <email@hidden>
- Date: Fri, 21 Apr 2006 16:51:10 -0700
Hi Dan,
On Apr 21, 2006, at 4:28 PM, Daniel DeCovnick wrote:
I'm trying to create a fetch specification in EOModeler, where it
returns all the objects where a particular boolean value therein is
true. I've got a "Customer" entity, with a to-many to a "QueueSpot"
entity. I want to create a fetch specification "shipping history"
on Customer where the qualifier is something like
queuespots.hasShipped == true. Am I going about this the right way
in the first place, and if so, how do I get it to work? Thanks.
At least once upon a time :-) this did _not_ work. Guido says it
worked for him so maybe it is fixed now. It might also work in the
app but not in EOModeler. You will have to experiment. If it works,
the correct qualifier would be
queuespots.hasShipped = true
Note the single equals. EOF should convert true into the correct
value for the database. If it does not, try specifying the value
directly.
If that does not work out, you will need to use an extension to the
qualifiers that come with EOF. I don't know how (or if) you can add
these to EOModeler. I've only used them in code. A collection of
good ones can be found here: http://homepage.mac.com/i_love_my/code.html
Chuck
--
Coming in late 2006 - an introduction to web applications using
WebObjects and Xcode http://www.global-village.net/wointro
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems. http://www.global-village.net/products/practical_webobjects
_______________________________________________
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