Abstract Entity without children [message #1068420] |
Sat, 13 July 2013 04:04  |
Eclipse User |
|
|
|
I have a modular system where modules implement abstract jpa entities. If no module - which implements such an abstract class - is available EclipseLink complains:
Internal Exception: Exception [EclipseLink-108] (Eclipse Persistence Services - 2.5.0.v20130507-3faac2b): org.eclipse.persistence.exceptions.DescriptorException
Exception Description: Cannot find value in class indicator mapping in parent descriptor [null].
Descriptor: RelationalDescriptor(my.AbstractEntity --> [DatabaseTable(ABSTRACTENTITY)])
at org.eclipse.persistence.exceptions.DescriptorException.valueNotFoundInClassIndicatorMapping(DescriptorException.java:1791)
at org.eclipse.persistence.descriptors.InheritancePolicy.initializeOnlyInstancesExpression(InheritancePolicy.java:1055)
at org.eclipse.persistence.descriptors.InheritancePolicy.initialize(InheritancePolicy.java:1016)
at org.eclipse.persistence.descriptors.ClassDescriptor.initialize(ClassDescriptor.java:3051)
I tried calling InheritancePolicy#setShouldReadSubclasses(true) but InheritancePolicy#initialize() resets it to false if there are no children.
What's the simplest way to make this work? I don't want to have dummy implementations and empty dummy tables...
|
|
|
|
Powered by
FUDForum. Page generated in 1.42236 seconds