QueryException Is Thrown If Query For OneToOne Mapping With FetchType.LAZY is Executed With a Warm Cache
(Doc ID 1420608.1)
Last updated on JANUARY 31, 2022
Applies to:
Oracle TopLink - Version 12.1.1.0 to 12.1.1.0 [Release 12c]Information in this document applies to any platform.
Symptoms
An application has an entity object with a bi-directional OneToOne mapping and FetchType.LAZY.
The following error occurs when triggering the relationship query by obtaining the object association on the "mappedBy" side.
The workaround to avoid this issue is to use FetchType.EAGER for the mappedBy side of the OneToOne relationship mapping.
Changes
Cause
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
Symptoms |
Changes |
Cause |
Solution |
References |