Re: cannot update primary-key error
Re: cannot update primary-key error
- Subject: Re: cannot update primary-key error
- From: Chuck Hill <email@hidden>
- Date: Wed, 16 Feb 2005 11:56:43 -0800
On Feb 16, 2005, at 11:43 AM, Albert Jagnow wrote:
The database is DB2. The PK type is DECIMAL in the database (the
field length in DB2 is 5,0 )
Make sure that the Scale and Precision in the EOModel match this.
and Number in Java. The Value Type is l.
That seems right, l for java.lang.Long.
The internal data type is set to double in the attribute inspector. I
didn't set it to double I just created the model from the database.
Do you think it should be something other than that?
Try Integer and see if that helps.
Chuck
The PK value is exposed as it is also used by this particular system
as a tracking number that is printed on reports.
On Feb 16, 2005, at 1:29 PM, Chuck Hill wrote:
Which database? What data type is the PK? This can sometimes happen
with exposed (class property) primary keys. I don't believe this is
the root cause as I have some exposed keys and I don't get this error.
IIRC, I have also seen this with OpenBase and BigDecimal primary keys
when the scale in the created key and the scale in the EOModel did not
match.
Chuck
--
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