Re: EOModeler and boolean
Re: EOModeler and boolean
- Subject: Re: EOModeler and boolean
- From: Kieran Kelleher <email@hidden>
- Date: Mon, 23 Apr 2007 10:44:40 -0400
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.
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@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.com
This email sent to 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