You could do a simple custom attribute class to handle your legacy db booleans

This is very old here, but it should give you an idea of how to do that:

http://web.me.com/kelleherk/iblog/C729512539/E2033071041/index.html





On Oct 28, 2010, at 1:59 PM, Michael Gargano wrote:

> I have a preexisting DB structure where booleans are stored 'Yes', 'No' 
> instead of 'true','false'
> 
> Any ways to handle this mapping?  I know java.lang.Boolean treats 'Yes' as 
> false.
> 
> Thanks.
> -Mike
> 
> _______________________________________________
> 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/kelleherk%40gmail.com
> 
> This email sent to [email protected]

 _______________________________________________
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