Hi Chuck,

>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
>
>

Thanks for the fast reply, works out of the box. Funny how a simple
additional column in EOModeler changes the world. Maybe WO 4 + OS X
Server 1.0 were more different than I thought after the first look at
XCode. I?m missing the old help center more than ever...

Greetings,

  Mike Bobkiewicz

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