Specifying Primary Keys in an Inheritance Hierarchy

TopLink assumes that all of the classes in an inheritance hierarchy have the same primary key, as set in the root descriptor. Child descriptors associated with tables that have different primary keys must define the mapping between the root primary key and the local one.

See "Specifying Multitable Info" for more information on primary keys in an inheritance hierarchy.


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
Mapping Inherited Attributes in a Subclass

 

Copyright © 1997, 2004, Oracle. All rights reserved.