Automatic boolean conversion?

Jesse Barnum <[email protected]> Fri, 11 Apr 2003 10:02:36 -0400
Newsgroups gmane.comp.web.webobjects.eof
Message-ID <[email protected]>
I'm trying to deal with Boolean values stored in the database. In 5.2, 
if I write a custom accessor method that returns a type 'boolean', then 
presto! 5.2 automatically internally converts the '1' or '0' from the 
database (I'm storing as an integer in the db) into a boolean.

However, this 'feature' introduces a problem - the stored snapshot from 
the database contains the value '1' (I guess the conversion happens 
after that point), and whenever I save changes to the database, EOF 
thinks that that attribute has changed from '1' to 'true', and it 
writes this to the database, even when this is not necessarily 
appropriate.

Has anybody else run into this? Any suggestions?

--Jesse Barnum, CEO, 360Works
http://www.360works.com/
Try WooF, the only solution for linking WebObjects and FileMaker!