Have you tried EOAttribute's validateValue?
Ramsey
On Mar 1, 2009, at 4:36 PM, Joe Moreno wrote:
Hi all,
I have set my database Scale on all floats to 7. Sometimes, due to
match or rounding, the scale goes beyond that and I get the
following exception:
[2009-03-01 13:26:28 PST] <WorkerThread3> <com.webobjects.Test>:
Exception in performActionNamed() on the action "testIt" with the
message
: com.webobjects.eoaccess.EOGeneralAdaptorException: The attribute
totalCost has a scale of 7, but the value 0.00728571 has a scale of
8: Rounding necessary
[2009-03-01 13:26:27 PST] <WorkerThread3>
com.webobjects.eoaccess.EOGeneralAdaptorException: The attribute
totalCost has a scale of 7, but the value 0.00728571
Is there a simple way to have a number automatically rounded in the
EOModel to "fit" into database?
Thanks,
Joe
_______________________________________________
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/rgurley
%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/archive%40mail-archive.com
This email sent to [email protected]