Mapping Inherited Attributes in One Descriptor
If you are mapping only one class in an inheritance hierarchy, you can map attributes that it inherits from any of its superclasses.
To map attributes in one descriptor:
- In the Structure window, select a descriptor.
- Right-click the descriptor and choose Inherited Attributes | Selected Class from the pop-up menu to specify a class from which to inherit. You can also map inherited attributes to:
- Superclass
- Root minus one
- Map the now visible attributes as though they belonged to this descriptor.
You can also do this if you have a common superclass that stores little or no persistent data. For example, if you were mapping subclasses of java.rmi.RemoteObject, each subclass could be mapped independently.
Related Topics
About TopLink Descriptors
Working with Descriptors
Working with Inheritance
Working with Descriptor Properties
Working with Advanced Properties
Using Inheritance with EJBs
Supporting Inheritance Using One Table
Supporting Inheritance Using Multiple Tables
Copyright © 1997, 2004, Oracle.
All rights reserved.