Finding Subclasses
An inheritance mapping for a root class must be able to locate its subclasses by using one of the following methods:
- Providing a class indicator field, which contains a key corresponding to its subclass.
- Including a class extraction method, which can be implemented in Java code; this is simply a method that returns a java.lang.Class object.
- Using class names directly in the class indicator field.
Related Topics
About TopLink Descriptors
Working with Descriptors
Working with Inheritance
Working with Descriptor Properties
Working with Advanced Properties
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.