Hi Kieran,

2007/4/23, Kieran Kelleher <[EMAIL PROTECTED]>:

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      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/kieran_lists%
> 40mac.com
>
> This email sent to [EMAIL PROTECTED]

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/ildenae%40gmail.com

This email sent to [EMAIL PROTECTED]




--
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to