Re: Cast Exception with boolean model attribute
Re: Cast Exception with boolean model attribute
- Subject: Re: Cast Exception with boolean model attribute
- From: Ian Joyner <email@hidden>
- Date: Mon, 19 Dec 2005 17:03:01 +1100
Since EO does not have an equivalent boolean type (strange since it's
there in Java), I just use Char (1) and put in 'T' or 'F' in the
table with functions 'f: char (1) -> boolean' to do the cast (Casts
are just functions, but like many things, C syntax obscures this
fact). Seems to be the recommended way to do things in WO (Practical
WO p42).
On 17/12/2005, at 8:39 AM, Jonathan Miller wrote:
Hi-
I'm trying out OpenBase and it's boolean data type. When I go to
display the data in the entity I get a java ClassCastException
The Internal Data Type for the attribute is specified as a Double
with a Value type of 'c'
Is there any gotchas I should be aware of?
Thanks in advance.
Jon
P.S. WO 5.3.1 && Openbase 9.1
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40sportstec.com
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