• 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: Cast Exception with boolean model attribute
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Cast Exception with boolean model attribute (From: Jonathan Miller <email@hidden>)

  • Prev by Date: WOTimer and Servlet Deploy
  • Next by Date: Problems with WOAdaptorInfo
  • Previous by thread: Cast Exception with boolean model attribute
  • Next by thread: Re: Cast Exception with boolean model attribute
  • Index(es):
    • Date
    • Thread