JDBCAdaptor failed to provide new primary keys
JDBCAdaptor failed to provide new primary keys
- Subject: JDBCAdaptor failed to provide new primary keys
- From: Jon Kleiser <email@hidden>
- Date: Thu, 4 Sep 2003 15:10:53 +0200
Hi,
I just noticed a problem in our WO (5.1.3) application when trying to
insert a new SwUndervismelding (extends EOGenericRecord) into the
editing context. In the eomodel, this entity has a compound primary
key consisting of several NSString (S) and NSNumber (i) columns. If,
in the newly created SwUndervismelding, one of those (pk) NSNumbers
has the numeric value 0, we get the following exception when trying
to save chnges:
java.lang.IllegalStateException: Adaptor
com.webobjects.jdbcadaptor.JDBCAdaptor@4fc301 failed to provide new
primary keys for entity 'SwUndervismelding'
As long as this number is not 0, everything works fine. We are using
the Oracle jdbc thin adapter. Is there a tidy solution to this
problem?
Sincerely,
Jon Kleiser
--
---------------------------------------------------------------------
Jon Kleiser / SUAF / USIT / University of Oslo / Norway
Mail: email@hidden / Tel: +47-22852804 / Fax: +47-22852970
---------------------------------------------------------------------
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.