| Summary: | Embedded of inherited Embeddable will not be mapped | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Florian Wunderlich <fwunderlich> | ||||
| Component: | Eclipselink | Assignee: | Nobody - feel free to take it <nobody> | ||||
| Status: | NEW --- | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P2 | CC: | guy.pelletier, tom.ware | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Florian Wunderlich
Created attachment 206067 [details]
Test case to reproduce the problem
I think your issue lies in the double declaration of BasicEmbeddable, that is: @Embeddable @MappedSuperclass public class BasicEmbeddable The class can't be both an Embeddable and a MappedSuperclass. You should remove the @Embeddable declaration and have only the @MappedSuperclass. (In reply to comment #2) > I think your issue lies in the double declaration of BasicEmbeddable, that is: > > @Embeddable > @MappedSuperclass > public class BasicEmbeddable > > The class can't be both an Embeddable and a MappedSuperclass. You should remove > the @Embeddable declaration and have only the @MappedSuperclass. Doesn't matter. You can remove the @Embeddable, and the behavior is still the same. Column "field" is still missing. On PostgreSQL: CREATE TABLE theentity ( id integer NOT NULL, test integer ); Outside of a DDL generation issue, is the mapping not available from the descriptor? That is, if you create the tables yourself are you able to persist TheEntity successfully? Just trying to narrow down your issue. Have you tried moving the @Embedded mapping from BasicEmbeddable to ExtendedEmbeddable? Same issue? Setting target and priority. See the following page for the meanings of these fields: http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines Community: Please vote for this bug if it is important to you. Votes are one of the main criteria we use to determine which bugs to fix next. The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |