• 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: Re(2): Getting mad with NSNumber data type...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re(2): Getting mad with NSNumber data type...


  • Subject: Re: Re(2): Getting mad with NSNumber data type...
  • From: Chuck Hill <email@hidden>
  • Date: Mon, 14 Aug 2006 11:45:30 -0700


On Aug 14, 2006, at 10:55 AM, Mike Bobkiewicz wrote:

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.

Great news!


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.

IIRC, this was one of the changed needed / made for Java and pure JDBC.


I'm missing the old help center more than ever...

It has been years since I thought of that app!

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


References: 
 >Re: Getting mad with NSNumber data type... (From: Chuck Hill <email@hidden>)
 >Re(2): Getting mad with NSNumber data type... (From: "Mike Bobkiewicz" <email@hidden>)

  • Prev by Date: Re: Webobjects-dev Digest, Vol 3, Issue 524
  • Next by Date: Re: Marketing WO
  • Previous by thread: Re(2): Getting mad with NSNumber data type...
  • Next by thread: Re: Tutorial
  • Index(es):
    • Date
    • Thread