Re: Fetching a specified Object.
Re: Fetching a specified Object.
- Subject: Re: Fetching a specified Object.
- From: Lachlan Deck <email@hidden>
- Date: Sun, 23 Mar 2008 12:02:08 +1100
On 23/03/2008, at 11:03 AM, David LeBer wrote:
On 22-Mar-08, at 6:59 PM, Gustavo Pizano wrote:
Hello. I have in my db some convocations with a state. (false,
true) , I wanna fetch the one-ones which state its true. how to do
this.
I was thinking in doing hte following
1 -EOQualifier qual = Convocation.STATE.eq(true), but thtat retunr
me a boolean.
If the Convocation state is modeled as a Boolean, then you need:
EOQualifier qual = Convocation.STATE.eq(Boolean.TRUE);
(Hint: Attributes are always objects, not primitives)
Wouldn't auto-boxing in Java 1.5 provide the same result as Gustavo
had it?
with regards,
--
Lachlan Deck
_______________________________________________
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