• 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: JDBCAdaptor@b447de failed to provide new primary keys
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JDBCAdaptor@b447de failed to provide new primary keys


  • Subject: Re: JDBCAdaptor@b447de failed to provide new primary keys
  • From: David LeBer <email@hidden>
  • Date: Sat, 5 Jan 2008 17:37:24 -0500


On 5-Jan-08, at 5:16 PM, Don Lindsay wrote:

Hello;

One of the primary keys is a date field, how would the system set this date?


If your model is not written in stone, I'd recommend you model a separate PK devoid of any real value beyond being a DB artifact. Your life will be easier in the long run.

If making changes is not an option, you can look here for details on custom PK generation:

<http://developer.apple.com/documentation/WebObjects/Enterprise_Objects/Saving/chapter_8_section_7.html >

don
On Jan 5, 2008, at 5:11 PM, Miguel Arroz wrote:

Hi!

On 2008/01/05, at 22:05, Don Lindsay wrote:

I am using an oracle database. Anytime I attempt to insert a record in any table I get the following error:

com.webobjects.jdbcadaptor.JDBCAdaptor@b447de failed to provide new primary keys for entity 'WeaponAssignment'

I have set all of the primary key attributes before attempting to insert the object. So I am kind of confused why I keep receiving this message.

I don't understand what you mean by this. You have set the primary keys manually on the object? If you did, than that's the problem, that's the job of EOF, not yours. :)


Yours

Miguel Arroz

;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site:   http://codeferous.com
blog: http://davidleber.net
profile: http://www.linkedin.com/in/davidleber
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org


_______________________________________________ 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
  • Follow-Ups:
    • Re: JDBCAdaptor@b447de failed to provide new primary keys
      • From: Miguel Arroz <email@hidden>
References: 
 >JDBCAdaptor@b447de failed to provide new primary keys (From: Don Lindsay <email@hidden>)
 >Re: JDBCAdaptor@b447de failed to provide new primary keys (From: Miguel Arroz <email@hidden>)
 >Re: JDBCAdaptor@b447de failed to provide new primary keys (From: Don Lindsay <email@hidden>)

  • Prev by Date: Re: JDBCAdaptor@b447de failed to provide new primary keys
  • Next by Date: Re: JDBCAdaptor@b447de failed to provide new primary keys
  • Previous by thread: Re: JDBCAdaptor@b447de failed to provide new primary keys
  • Next by thread: Re: JDBCAdaptor@b447de failed to provide new primary keys
  • Index(es):
    • Date
    • Thread