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 14:38:51 -0600
- Importance: normal
- Priority: normal
Changing the internal data type to Integer and setting the Value Type
to i on the PK attribute seems to have corrected the problem. I had to
make this change on the PK for both of the entities that were involved.
Thanks for the help.
--Albert
On Feb 16, 2005, at 1:56 PM, Chuck Hill wrote:
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
_______________________________________________
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