ECLIPSELINK-00195 With Embeddeds Even With eclipselink.cache.shared.default Is False
(Doc ID 1093720.1)
Last updated on MARCH 19, 2019
Applies to:Oracle TopLink - Version 18.104.22.168.0 and later
Information in this document applies to any platform.
JPA Embeddeds are always set to shared=true (isolated=false) and do not pick up defaults or their parent's shared setting. They should probably inherit the isolation of their parent at all times. When eclipselink.cache.shared.default is set to false, any relationship from an Embedded to a non-shared Entity will trigger a validation exception.
Entity Object Model
Publisher references Embeddable Address
Address has a OneToOne mapping to City
The persistence.xml defines:
<property name="eclipselink.cache.shared.default" value="false" />
- Just starting the persistence context will reproduce the problem
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 Entity Object Model Problem Scenario
Cause Solution References
My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.