Re: Getting mad with NSNumber data type...
Re: Getting mad with NSNumber data type...
- Subject: Re: Getting mad with NSNumber data type...
- From: Chuck Hill <email@hidden>
- Date: Mon, 14 Aug 2006 09:52:34 -0700
Take a look at Value Type on this page: http://developer.apple.com/
documentation/WebObjects/UsingEOModeler/4WorkingWithAttributes/
chapter_4_section_3.html
You are probably missing
d—java.lang.Double
Though I STRONGLY recommend
B—java.math.BigDecimal
Doubles are not accurate enough and prone to "off by a bit" errors
going Java <-> JDBC <-> Database
Chuck
On Aug 14, 2006, at 8:56 AM, Mike Bobkiewicz wrote:
Hi,
after some years away from WO development a project brings me back to
it. I´m working on a OS X Tiger, XCode 2.4 and MySQL 5 environment.
Mastering the first normal problems I´m now at a point of no go: I´ve
some fields in my database of type double. After setting the typ for
both internal and external data type to "double" in the info window
EOModeler sets the Value Class to "NSNumber". Trying to store any
value
in the variable of a class containing this type of field I get an
error
message "value type ' ' on attribute 'x' of entity 'y' is invalid. You
should fix your EOModel". Trying to insert any calculated values gives
compiler error "incompatible types" when I try to assign a double
variable. On the other hand Integer works without a problem. What´s
wrong? Must I change the class file and change "Number" to "double".
Please help.
Best regards,
Mike Bobkiewicz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net
This email sent to email@hidden
--
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems. http://www.global-village.net/products/practical_webobjects
_______________________________________________
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