Re: Postgresql, booleans and EOM
Re: Postgresql, booleans and EOM
- Subject: Re: Postgresql, booleans and EOM
- From: Giorgio Valoti <email@hidden>
- Date: Sat, 28 Aug 2004 12:37:02 +0200
On 27/ago/04, at 20:37, Michael Engelhart wrote:
Thanks Giorio. I modified my EOModel to the way you've described,
but the accessor methods that EOMOdeler creates in my EO still have
Number as the return value. Do I just leave those alone?
ah, I missed the code-generation step. IIRC, EOModeler always generates
Number-signed methods, but you can edit them or use eogenerator ;-)
Hope this helps
--
Giorgio Valoti
--------------
Thanks
MIke
On Aug 25, 2004, at 3:06 PM, Giorgio Valoti wrote:
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.
_______________________________________________
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.