Community
Participate
Working Groups
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.
Created attachment 170662 [details] console output
Guy, might this be related to the issue we were looking at on Friday? bug 314941
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 --> [])
Setting target and priority. See the following page for details of what these fields mean: http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines
Created attachment 185916 [details] Proposed changes
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)
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink