Cause
This error occurs if your application code attempts to reference a transient object from a persistent object.
This can be caused directly by assigning a transient reference to the property of a persistent object or indirectly by assigning a persistent reference to the property of a transient object where an inverse exists back to the persistent object (which results in an attempt to assign a reference to the transient on the persistent object).
The error can also occur if you attempt to clone or copy a persistent instance of an object from a transient instance that has references to transient objects.
Action
Change your application code so that persistent objects do not reference transient objects.
You can use the
Calling the allowTransientToPersistentInvs method with a parameter of true is equivalent to checking this check box (until this method is called with a parameter value of false). For details, see "
The rules for assigning references are summarized as follows.
Where no inverse references exist, a persistent object can reference other persistent objects but not transient objects.
Where no inverse references exist, a transient object can reference both transient and persistent objects. However, shared transient objects cannot reference non-shared transient objects (for details, see error 1289 - Shared transient objects cannot reference non-shared transient objects).
Where inverse references exist (and the option to allow transient to persistent references is not enabled by the Allow Transient to Persistent Reference check box or the