Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 315253

Summary: Descriptor exception with Embeddable on DDL gen
Product: z_Archived Reporter: Paul Fullbright <paul.fullbright>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P2 CC: eclipselink.orm-inbox, guy.pelletier, karenfbutzke, tom.ware
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:
Attachments:
Description Flags
Dali project
none
console output
none
Proposed changes none

Description Paul Fullbright CLA 2010-06-01 12:49:56 EDT
Created attachment 170661 [details]
Dali project

This actually occurred in EclipseLink 2.1 RC3  (of which there is no version option available)


Take the existing Dali project (or use the associated persistence.xml, orm.xml and java source to make your own) and generate tables from entities.  (I used Derby)

The attached console output is generated.  Basically, EclipseLink is objecting that I don't have a table associated with my descriptor, which happens to be an embeddable.  I'm not sure if the problem is that EclipseLink thinks it isn't an embeddable, but even if that were the case, there should be a default table associated.
Comment 1 Paul Fullbright CLA 2010-06-01 12:51:42 EDT
Created attachment 170662 [details]
console output
Comment 2 Karen Butzke CLA 2010-06-01 13:02:56 EDT
Guy, might this be related to the issue we were looking at on Friday? bug 314941
Comment 3 Karen Butzke CLA 2010-06-01 13:16:01 EDT
Upon further investigation this is unrelated to bug 314941.

Looks like the issue is that EmbeddableType does not have any properties only one field 'private String basic'. The owning entity specifies PROPERTY access.  If I add the getter/setter methods the generation happens successfully.

The error is not useful in this case:
Exception Description: Descriptors must have a table name defined.
Descriptor: RelationalDescriptor(foo.EmbeddableType --> [])
Comment 4 Tom Ware CLA 2010-06-14 14:26:33 EDT
Setting target and priority.  See the following page for details of what these fields mean:

http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines
Comment 5 Guy Pelletier CLA 2010-12-30 14:59:11 EST
Created attachment 185916 [details]
Proposed changes
Comment 6 Guy Pelletier CLA 2010-12-30 15:20:56 EST
Changes have been submitted.

Reviewed by: Michael O'Brien

Tests: New model added to DDL test suite to expose initialization error. With this patch, that descriptor exception goes away and all tests pass (core-lrg, full regression test suite and extended jpa test suite)
Comment 7 Eclipse Webmaster CLA 2022-06-09 10:33:24 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink