Working with Inheritance
In TopLink, inheritance describes how a child class inherits the characteristics of its parent class. TopLink provides multiple methods to preserve the inheritance relationships. You can override mappings that have been specified in a superclass, or map attributes that have not been mapped at all in the superclass.
Note: When using an aggregate descriptor in an inheritance, all the descriptors in the inheritance tree must be aggregates. Aggregate and Class descriptors cannot exist in the same inheritance tree.
Related Topics
About TopLink Descriptors
Working with Descriptors
Specifying Inheritance
Using Inheritance with EJBs
Mapping Inherited Attributes in One Descriptor
Supporting Inheritance Using One Table
Supporting Inheritance Using Multiple Tables
Finding Subclasses
Providing a Class Indicator Field
Understanding Root, Branch, and Leaf Classes in an Inheritance Hierarchy
Specifying Primary Keys in an Inheritance Hierarchy
Mapping Inherited Attributes in a Subclass
Copyright © 1997, 2004, Oracle.
All rights reserved.