I create the table once again, putting Boolean as state type. Msyql doesn't have boolean, so it puts a tinyint(1), 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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/gustavpicora%40gmail.com

This email sent to [EMAIL PROTECTED]

 _______________________________________________
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]

Reply via email to