EclipseLink-6044 QueryException:Primary keys must not contain null
(Doc ID 1483384.1)
Last updated on AUGUST 21, 2020
Applies to:Oracle TopLink - Version 220.127.116.11.0 to 18.104.22.168 [Release Oracle11g to 12c]
Information in this document applies to any platform.
***Checked for relevance on 03-Jun-2014***
When executing a query with Eclipselink 2.3.1 (Toplink 22.214.171.124) , 2.3.2 (Toplink 12.1.1) versions
the following exception is occuring :
Exception Description: The primary key read from the row [DatabaseRecord(
employee.EMP_ID( => 1
employee.REFERENCE_ID => 001
employee.COMPANY_CDE => Oracle
employee.BUSINESS_NAME => null
employee.F_NAME => John
employee.L_NAME => Doe
employee.LAST_UPDATED => 2011-09-23 00:00:21.452
employee.VERSION => 1
employee.CITY => Toronto
employee.STATE_CDE => ONT
employee.ZIPCODE => L5J2B5
employee.VERSION => 1)] during the execution of the query was detected to
be null. Primary keys must not contain null.
Note that descriptor mappings comply to the rules for primary keys (unique and each field is not null).
The related sequence of code is :
This exception does not occur against Eclipselink 2.0.2 ( Toplink 126.96.36.199).
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document