• 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
Postgresql + booleans = error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Postgresql + booleans = error


  • Subject: Postgresql + booleans = error
  • From: Randall Perry <email@hidden>
  • Date: Wed, 15 Feb 2006 10:40:28 -0500
  • Thread-topic: Postgresql + booleans = error

I used eomodeler to generate the model and EO classes from a Postgresql db.
I'm having a problem using the boolean data type. If I reference a boolean
field 'rec.campsiteFri()' like so:

if (rec.campsiteFri()) {
            return true;
        }

I get a compiler error 'incompatible types'. I can't use the field in
WOBuilder as it throws a java class cast exception.

I've read previous posts saying there are problems using boolean types in
eomodeler. Should I be avoiding booleans altogether in my db design and use
integer instead?


Here's the eomodeler specs for this field:

ext type    val class (java)    val type    val class   prec
-------     ----------------    --------    ---------   -----
bool        Number              c           NSNumber    1





--
Randall Perry
sysTame

Xserve Web Hosting/Co-location/Leasing
QuickTime Streaming
Mac Consulting/Sales

http://www.systame.com/



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Postgresql + booleans = error
      • From: Lachlan Deck <email@hidden>
    • Re: Postgresql + booleans = error
      • From: Arturo Perez <email@hidden>
    • Re: Postgresql + booleans = error
      • From: Jean-François Veillette <email@hidden>
  • Prev by Date: Re: Unique attributes
  • Next by Date: Re: Postgresql + booleans = error
  • Previous by thread: Re: EOGenerator & D2JC
  • Next by thread: Re: Postgresql + booleans = error
  • Index(es):
    • Date
    • Thread