Re: cannot update primary-key error
Re: cannot update primary-key error
- Subject: Re: cannot update primary-key error
- From: "Albert Jagnow" <email@hidden>
- Date: Wed, 16 Feb 2005 13:43:48 -0600
- Importance: normal
- Priority: normal
The database is DB2. The PK type is DECIMAL in the database (the field
length in DB2 is 5,0 ) and Number in Java. The Value Type is l. 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? 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
_______________________________________________
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