• 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: 5.2.3 Boolean Bugs?????
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >5.2.3 Boolean Bugs????? (From: James Cicenia <email@hidden>)
 >Re: 5.2.3 Boolean Bugs????? (From: steve stout <email@hidden>)
 >Re: 5.2.3 Boolean Bugs????? (From: Anders Peterson <email@hidden>)
 >Re: 5.2.3 Boolean Bugs????? (From: Travis Britt <email@hidden>)
 >Re: 5.2.3 Boolean Bugs????? (From: Robert Walker <email@hidden>)
 >Re: 5.2.3 Boolean Bugs????? (From: steve stout <email@hidden>)
 >Re: 5.2.3 Boolean Bugs????? (From: Robert Walker <email@hidden>)
 >Re: 5.2.3 Boolean Bugs????? (From: steve stout <email@hidden>)
 >Re: 5.2.3 Boolean Bugs????? (From: Robert Walker <email@hidden>)
 >Re: 5.2.3 Boolean Bugs????? (From: Chuck Hill <email@hidden>)
 >Re: 5.2.3 Boolean Bugs????? (From: steve stout <email@hidden>)
 >Re: 5.2.3 Boolean Bugs????? (From: Jonathan Rochkind <email@hidden>)

  • Prev by Date: refreshesRefetchedObjects significant hit on efficiency
  • Next by Date: Re: 5.2.3 Boolean Bugs?????
  • Previous by thread: Re: 5.2.3 Boolean Bugs?????
  • Next by thread: Re: 5.2.3 Boolean Bugs?????
  • Index(es):
    • Date
    • Thread