Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 315253 - Descriptor exception with Embeddable on DDL gen
Summary: Descriptor exception with Embeddable on DDL gen
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-01 12:49 EDT by Paul Fullbright CLA
Modified: 2022-06-09 10:33 EDT (History)
4 users (show)

See Also:


Attachments
Dali project (11.99 KB, application/zip)
2010-06-01 12:49 EDT, Paul Fullbright CLA
no flags Details
console output (13.48 KB, text/plain)
2010-06-01 12:51 EDT, Paul Fullbright CLA
no flags Details
Proposed changes (14.08 KB, patch)
2010-12-30 14:59 EST, Guy Pelletier CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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