Re: Fetching a specified Object.
Re: Fetching a specified Object.
- Subject: Re: Fetching a specified Object.
- From: David LeBer <email@hidden>
- Date: Sun, 23 Mar 2008 11:28:55 -0400
On 23-Mar-08, at 11:22 AM, Gustavo Pizano wrote:
I create the table once again, putting Boolean as state type. Msyql
doesn't have boolean, so it puts a tinyint(1),
There is your problem.
The ERPrototypes boolean prototype (if you are still using it) maps to
an external type of varchar(5), change your db.
Im doing this
EOQualifier qual = Convocation.STATE.eq(new Integer (1));
convocation
=Convocation.fetchConvocation(session().defaultEditingContext(),
qual);
and when I show it in the page the states its false. it is supposed
that 1 == true and 0 equals 1. But if I insert int the table another
record with state value 'true' it will put a 0, its funny. So of
course the above command will work, it will work If I put this.
EOQualifier qual = Convocation.STATE.eq(Boolean.TRUE);
and in the same way It will display a 'false' in the WOTextfield.
Gus
On Mar 23, 2008, at 3:28 AM, Lachlan Deck wrote:
On 23/03/2008, at 1:37 PM, Gustavo Pizano wrote:
Actually I was looking it right now, and yes its the same.
Now, how about the database column. Is it a varchar(5)? You
mentioned you're entering 0s and 1s. So it sounds like you've
mismatched the database column type with your model.
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
_______________________________________________
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
;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