Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Abstract Entity without children
Abstract Entity without children [message #1068420] Sat, 13 July 2013 08:04 Go to next message
Christoph L is currently offline Christoph LFriend
Messages: 8
Registered: January 2012
Junior Member
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(
  at org.eclipse.persistence.descriptors.InheritancePolicy.initializeOnlyInstancesExpression(
  at org.eclipse.persistence.descriptors.InheritancePolicy.initialize(
  at org.eclipse.persistence.descriptors.ClassDescriptor.initialize(

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...
Re: Abstract Entity without children [message #1069752 is a reply to message #1068420] Tue, 16 July 2013 13:41 Go to previous message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

How have you mapped the Entity? Are you using @MappedSuperclass? If not, you probably should.

James : Wiki : Book : Blog : Twitter
Previous Topic:Many Warnings from JPA-Added RowIDs When Database Change Notification Enabled
Next Topic:private-owned versus orphan-removal versus cascade-remove
Goto Forum:

Current Time: Mon Jun 18 10:04:18 GMT 2018

Powered by FUDForum. Page generated in 0.01784 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top