Re: Postgresql, booleans and EOM
Re: Postgresql, booleans and EOM
- Subject: Re: Postgresql, booleans and EOM
- From: Giorgio Valoti <email@hidden>
- Date: Wed, 25 Aug 2004 22:06:09 +0200
On 25/ago/04, at 15:49, Michael Engelhart wrote:
Hi -
What are the Postgresql developers out there using for booleans in
Postgresql so that it works in EOModeler? I've read a bunch of
different posts in the archives but can't seem to conclude which works
best for Postgres. I have tried both Integers and chars to store 0/1
or t/f in the database and have the cover method convert to a boolean
but is there a better way?
This should work:
...
columnName = <YOUR_COLUMN_NAME>;
externalType = bool;
name = <yourAttrName>;
valueClassName = NSNumber;
valueType = c;
...
No need for cover methods, EOGenericRecord is just fine.
Hope this helps
--
Giorgio Valoti
--------------
_______________________________________________
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.