• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: cannot update primary-key error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >online store project help needed (From: Kris Holmes <email@hidden>)
 >Re: online store project help needed (From: Dennis Gaastra <email@hidden>)
 >cannot update primary-key error (From: "Albert Jagnow" <email@hidden>)
 >Re: cannot update primary-key error (From: Chuck Hill <email@hidden>)
 >Re: cannot update primary-key error (From: "Albert Jagnow" <email@hidden>)
 >Re: cannot update primary-key error (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: cannot update primary-key error
  • Next by Date: EOModel java type and Value Type Question?
  • Previous by thread: Re: cannot update primary-key error
  • Next by thread: Custom formatting & validation causes wrong data to be saved
  • Index(es):
    • Date
    • Thread