Hi!And check this out too: <http://developer.apple.com/documentation/ WebObjects/Enterprise_Objects/Saving/chapter_8_section_8.html#// apple_ref/doc/uid/TP30001011-CH208-BADJEBIB>.
Never used compound keys myself, so I can't help much more. Good luck!
Yours Miguel Arroz On 2008/01/05, at 22:37, David LeBer wrote:
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:[EMAIL PROTECTED] 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 protected]) Help/Unsubscribe/Update your Subscription:http://lists.apple.com/mailman/options/webobjects-dev/arroz% 40guiamac.comThis email sent to [EMAIL PROTECTED]
Miguel Arroz http://www.terminalapp.net http://www.ipragma.com
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
