Re: 5.2.3 Boolean Bugs?????
Re: 5.2.3 Boolean Bugs?????
- Subject: Re: 5.2.3 Boolean Bugs?????
- From: Ben Trumbull <email@hidden>
- Date: Thu, 18 Mar 2004 15:12:59 -0800
At 15:12 -0600 3/18/04, Jonathan Rochkind wrote:
I've said it before, and I'll say it again now: My conclusion is do
NOT model boolean attributes at all. I think you're in for all sorts
of problems if you do. Between the JDBC Driver, the JDBCPlugIn, and
EOF's _own_ built-in stuff for data type coercion (specially the
wacky completely undocumented stuff around boolean values)----I
think you are a lot better off simply modeling your boolean-like
columns as an Integer, and providing custom cover methods in your
Java class to convert to boolean. Custom cover methods with a
_different_ name than your attribute, to make sure EOF doesn't sneak
around in it's completely undocumented way to do boolean conversion
for you. EOF's own boolean conversion has caused me all sorts of
problems.
http://wodev.spearway.com/cgi-bin/WebObjects/WODev.woa/wa/Main?wikiPage=Weird52EOFBug
That's fixed in 5.2.3. The JDBC layer generates Booleans now.
--
-Ben
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.