rec.campsiteFri() probably return a Boolean (the class), not the basic boolean data type.
Default NSKeyValueCoding implantation does the coersion for free.

- jfv

Le 06-02-15, à 10:40, Randall Perry a écrit :

I used eomodeler to generate the model and EO classes from a Postgresql db. I'm having a problem using the boolean data type. If I reference a boolean
field 'rec.campsiteFri()' like so:

if (rec.campsiteFri()) {
            return true;
        }

I get a compiler error 'incompatible types'. I can't use the field in
WOBuilder as it throws a java class cast exception.

I've read previous posts saying there are problems using boolean types in eomodeler. Should I be avoiding booleans altogether in my db design and use
integer instead?


Here's the eomodeler specs for this field:

ext type    val class (java)    val type    val class   prec
-------     ----------------    --------    ---------   -----
bool        Number              c           NSNumber    1





-- Randall Perry
sysTame

Xserve Web Hosting/Co-location/Leasing
QuickTime Streaming
Mac Consulting/Sales

http://www.systame.com/



 _______________________________________________
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/ jean_francois_veillette%40yahoo.ca

This email sent to [EMAIL PROTECTED]


http://www.freeiPods.com/?r=21419063

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
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