Re: Value Type Invalid...
Re: Value Type Invalid...
- Subject: Re: Value Type Invalid...
- From: Chuck Hill <email@hidden>
- Date: Tue, 24 May 2005 21:49:20 -0700
Because it's true, you should fix your EOModel! :-P
See
http://developer.apple.com/documentation/WebObjects/UsingEOModeler/4WorkingW
ithAttributes/chapter_4_section_3.html#//apple_ref/doc/uid/TP30001018-DontLi
nkChapterID_3-BABFGECE
You are missing valueType = d (or B if you want BigDecimal).
Chuck
At 12:16 PM 25/05/2005 +1000, LD wrote:
>>>>
Hi there,
I've got an entity 'Product' with an attribute 'freightOffsetRatio' as
follows:
{
allowsNull = Y;
columnName = "FREIGHT_OFFSET_RATIO";
externalType = numeric;
name = freightOffsetRatio;
precision = 5;
scale = 4;
valueClassName = NSDecimalNumber;
},
Any ideas why the following problem occurs when saving a Product when no
value is suppled by the user?
The run-log gives the following on saving a product...
[2005-05-25 12:05:05 EST] <WorkerThread2> value type ' ' on attribute
"freightOffsetRatio" of entity "Product" is invalid. You should fix your
EOModel.
Thanks.
WO5.2.4 / Mac OS X 10.4.1 / PostgreSQL 8.0.3
with regards,
--
LD
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
.net
This email sent to email@hidden
<<<<
--
Practical WebObjects - a book for intermediate WebObjects developers
who want to increase their overall knowledge of WebObjects, or those
who are trying to solve specific application development 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