• 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: EOModeler and boolean
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EOModeler and boolean


  • Subject: Re: EOModeler and boolean
  • From: "Daniele Corti" <email@hidden>
  • Date: Mon, 23 Apr 2007 17:04:03 +0200

Hi Kieran,

2007/4/23, Kieran Kelleher <email@hidden>:
If you have control over the DB design, then don't waste your time
fiddling with ints for booleans. Use the database vendor independent
boolean prototype that uses the strings 'true' and 'false' in the db
and converts on the fly in and out of the DB to Boolean objects.

are you sure is not possible to use as external value "BOOLEAN", without using a custom internal data type?

For details, see the boolean prototype in Wonder's ERPrototypes (just
download it and open the EOModel to see it).

And if you are not using prototypes, you are working too hard. Also
boolean proto is well documented somewhere in Practical WebObjects
book IIRC.

On Apr 23, 2007, at 9:58 AM, WIESEN Bruno wrote:

> Hello,
>
> I recently added a column in my table, i defined it like this in
> EOModeler :
>
>       value class = NSNumber
>       External Type = bool
>
> It worked in a test application but now in the good one, it
> failed...I have a JDBCAdaptorException : wrong value for int ...
> When i ty to set the boolean field with the set...method : i get a
> classCastException
> Any ideas to solve the problem ?
>
> Thank you!
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      (
> 40mac.com
>
> This email sent to email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AIM: S0CR4TE5
Messenger: email@hidden
 _______________________________________________
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: EOModeler and boolean
      • From: Kieran Kelleher <email@hidden>
References: 
 >EOModeler and boolean (From: WIESEN Bruno <email@hidden>)
 >Re: EOModeler and boolean (From: Kieran Kelleher <email@hidden>)

  • Prev by Date: Re: EOModeler and boolean
  • Next by Date: Re: EOModeler and boolean
  • Previous by thread: Re: EOModeler and boolean
  • Next by thread: Re: EOModeler and boolean
  • Index(es):
    • Date
    • Thread