Am 23.03.2008 um 01:03 schrieb David LeBer:
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 following1 -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);
just use: EOQualifier qual = Convocation.STATE.isTrue(); and for the other case: EOQualifier qual = Convocation.STATE.isFalse();
(Hint: Attributes are always objects, not primitives)then I should do some2 -Convocation con = Convocation.fetchConvocation(ERXEC.newEditingContext(),qual);I have problems in numeral 1.;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 protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/werner%40isd.uni-stuttgart.de This email sent to [EMAIL PROTECTED]
jw
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ 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]
