• 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: Postgresql, booleans and EOM
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Postgresql, booleans and EOM (From: Michael Engelhart <email@hidden>)
 >Re: Postgresql, booleans and EOM (From: Giorgio Valoti <email@hidden>)
 >Re: Postgresql, booleans and EOM (From: Michael Engelhart <email@hidden>)

  • Prev by Date: Xcode 1.5, Ant External Target, and rapid-turnaround
  • Next by Date: Re: Debugging WO on Windows
  • Previous by thread: Re: Postgresql, booleans and EOM
  • Next by thread: Add web services support in existing application
  • Index(es):
    • Date
    • Thread