Mapping Inherited Attributes in a Subclass
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 subclasses that inherit the attribute are unaffected.
To view and map attributes inherited from a superclass:
- In the Structure window, right-click a descriptor and choose Inherited Attributes | Map to Superclass.
- The mappings list now includes all the attributes from the superclass of this class.
- Map any desired attributes. See "About TopLink Mapping Types" for details.
- 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.
Related Topics
About TopLink Descriptors
Working with Descriptors
Working with Inheritance
Working with Descriptor Properties
Working with Advanced Properties
Finding Subclasses
Providing a Class Indicator Field
Understanding Root, Branch, and Leaf Classes in an Inheritance Hierarchy
Specifying Primary Keys in an Inheritance Hierarchy
Copyright © 1997, 2004, Oracle.
All rights reserved.