DescriptorException When Inserting an Object that has an Aggregate Object Mapping

(Doc ID 1612659.1)

Last updated on JANUARY 12, 2014

Applies to:

Oracle TopLink - Version 12.1.2.0.0 to 12.1.2.0.0 [Release 12c]
Information in this document applies to any platform.

Symptoms

An object (sample.model.Part) is mapped as having an aggregate object (sample.model.Audit) containing a version lock field of type Timestamp/Date, and utilizes
TimestampLockingPolicy. Here is an extract of the corresponding object mapping XML file :

This occurs when the referenced aggregate object is null (even if 'allows null' is enabled for the aggregate object mapping). If the referenced
aggregate object is non-null, the exception is not observed.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms