> Look at the method return type in campsiteFri. It might show:
> public Number campsiteFri ()
> Thats what it is.
> You can have a look how to setup boolean value types in Practical
> WebObjects...
> or use int....
> 
> It is not trivial to use boolean types because of incompatibility of
> databases.
> 
> HTH
> 
> Wolfram
> 

Practical WebObjects had a ref to:
http://wodev.spearway.com/cgi-bin/WebObjects/WODev.woa/wa/Main?wikiPage=Bool
eanModeling

>From which I got this:

> My 'zero effort' approach is as follows:
> In EOModeler, I have an attribute called 'enabled':
> 
> 
> Name = 'enabled'
> Value Class (Java) = 'Boolean'
> External Type = 'BOOL' (in MySQL it maps to tinyint(1))
> Value Type 'c'

So I changed the value class to 'Boolean' for all booleans in my table.plist
file (inside the eomodel pkg). I test the Boolean like so:
    if (rec.campsiteFri().booleanValue()) {
    }

and it works 8-]

This project needs read-only access to the db. Don't know if this method
will write changes to boolean values properly, but I'll settle for this for
now.

Thanks for the info guys. I'm e-booleant.


-- 
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/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to