• 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: 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.


  • Follow-Ups:
    • Re: Postgresql, booleans and EOM
      • From: Michael Engelhart <email@hidden>
References: 
 >Postgresql, booleans and EOM (From: Michael Engelhart <email@hidden>)

  • Prev by Date: Re: Still hopeful for D2WList advice
  • Next by Date: Re: Still hopeful for D2WList advice[JOY!!!]
  • Previous by thread: Postgresql, booleans and EOM
  • Next by thread: Re: Postgresql, booleans and EOM
  • Index(es):
    • Date
    • Thread