Skip Headers

# Configuring Inherited Attribute Mapping in a Subclass

Previous

Next

If you are defining the descriptor for a class that inherits attributes from another class, then you can create mappings for those attributes. If you remap an attribute that was already mapped in the superclass, then the new mapping applies to the subclass only. Any other siblings that inherit the attribute are unaffected.

If you leave inherited attributes unmapped, TopLink uses the mapping (if any) from the superclass if the superclass's descriptor has been designated as the parent descriptor.

Table: Descriptor Support for Inherited Attribute Mapping Configuration summarizes which descriptors support inherited attribute mapping configuration.

Descriptor Support for Inherited Attribute Mapping Configuration

Descriptor | Using TopLink Workbench | Using Java
--- | --- | ---
Relational Descriptors |  |
Object-Relational Descriptors |  |
EIS Descriptors |  |
XML Descriptors |  |

For more information, see "Descriptors and Inheritance".