This content has been marked as final. Show 2 replies
Looks like my response didn't get through for some reason.
You didn't post the relevant JPA mapping and inheritance information, so I guess based on the table structure that you have a child entity with no mappings defined inheriting from a parent using a joined table inheritance. Joined table inheritance might be the wrong strategy to use, as each subclass requires a row in the parent table as well as the child table - a one to one relationship. Your child seems to be independent of the parent so you willl either need to use a table per class inheritance strategy and override the field names defined from the mappings on the parent entity ( see http://www.eclipse.org/eclipselink/api/2.0/javax/persistence/AttributeOverride.html )
or it might be better to make the two classes completely independent and not have them associated through inheritance - the two classes might be better as seperate branches of the same tree instead of directly decending from one another. See http://wiki.eclipse.org/EclipseLink/UserGuide/JPA/Basic_JPA_Development/Entities/Inheritance#Avoiding_Inheritance