• 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: Fetching a specified Object.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fetching a specified Object.


  • Subject: Re: Fetching a specified Object.
  • From: David LeBer <email@hidden>
  • Date: Sat, 22 Mar 2008 21:19:21 -0400


On 22-Mar-08, at 9:02 PM, Lachlan Deck wrote:

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?

Grumble, new fangled language features, grumble...

Yes it would appear that it does Lachlan. In that case, I don't know what Gustavo's problem was.

Though, I think I like Johann's version better:

EOQualifier qual = Convocation.STATE.isTrue();
EOQualifier qual = Convocation.STATE.isFalse();

;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site:   http://codeferous.com
blog: http://davidleber.net
profile: http://www.linkedin.com/in/davidleber
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org


_______________________________________________ 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
References: 
 >Fetching a specified Object. (From: Gustavo Pizano <email@hidden>)
 >Re: Fetching a specified Object. (From: David LeBer <email@hidden>)
 >Re: Fetching a specified Object. (From: Lachlan Deck <email@hidden>)

  • Prev by Date: Re: Fetching a specified Object.
  • Next by Date: Re: Fetching a specified Object.
  • Previous by thread: Re: Fetching a specified Object.
  • Next by thread: Re: Fetching a specified Object.
  • Index(es):
    • Date
    • Thread