Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Baffling exception: Cannot find value in class indicator mapping in parent descriptor [null]

Thank you!  Part of the reason I missed this is that NameEntity is abstract (all instances will be instances of one of two possible subclasses).  Must an abstract entity still define a discriminator value?

Thanks,
Laird

On Tue, May 18, 2010 at 2:22 PM, James Sutherland <jamesssss@xxxxxxxxx> wrote:

The error is stating that the NameEntity is involved in inheritance but does
not define a discriminator.

How have you mapped this class?  Please include the class def and mappings.
If it is involved in inheritance you need to define a discriminator for the
class.



ljnelson wrote:
>
> EclipseLink is telling me this:
>
> Exception Description: Cannot find value in class indicator mapping in
> parent descriptor [null].
>
> (Well, more specifically, this:
>
> Runtime Exceptions:
> ---------------------------------------------------------
>
> [EL Severe]: 2010-05-13
> 15:31:42.125--ServerSession(14434757)--Thread(Thread[main,5,main])--Local
> Exception Stack:
> Exception [EclipseLink-0] (Eclipse Persistence Services -
> 2.0.1.v20100213-r6600):
> org.eclipse.persistence.exceptions.IntegrityException
> Descriptor Exceptions:
> ---------------------------------------------------------
>
> Exception [EclipseLink-108] (Eclipse Persistence Services -
> 2.0.1.v20100213-r6600):
> org.eclipse.persistence.exceptions.DescriptorException
> Exception Description: Cannot find value in class indicator mapping in
> parent descriptor [null].
> Descriptor: RelationalDescriptor(com.foobar.party.jpa.NameEntity -->
> [DatabaseTable(foobar.Name)])
>
> Exception [EclipseLink-41] (Eclipse Persistence Services -
> 2.0.1.v20100213-r6600):
> org.eclipse.persistence.exceptions.DescriptorException
> Exception Description: A non-read-only mapping must be defined for the
> sequence number field.
> Descriptor: RelationalDescriptor(com.foobar.party.jpa.NameEntity -->
> [DatabaseTable(foobar.Name)])
>
> ).  NameEntity uses the TableGenerator style of automatic ID generation.
> Additionally, I am NOT letting EclipseLink generate my tables.
>
> So then: what sequence is it talking about?  Why would I need a mapping
> for
> a sequence, when I'm not using sequences?
>
> Best,
> Laird
>
>


-----
http://wiki.eclipse.org/User:James.sutherland.oracle.com James Sutherland
http://www.eclipse.org/eclipselink/
 EclipseLink ,  http://www.oracle.com/technology/products/ias/toplink/
TopLink
Wiki:  http://wiki.eclipse.org/EclipseLink EclipseLink ,
http://wiki.oracle.com/page/TopLink TopLink
Forums:  http://forums.oracle.com/forums/forum.jspa?forumID=48 TopLink ,
http://www.nabble.com/EclipseLink-f26430.html EclipseLink
Book:  http://en.wikibooks.org/wiki/Java_Persistence Java Persistence
--
View this message in context: http://old.nabble.com/Baffling-exception%3A-Cannot-find-value-in-class-indicator-mapping-in-parent-descriptor--null--tp28551731p28599644.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.

_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users


Back to the top