Skip Headers
Oracle TopLink Developer's Guide
10g Release 3 (10.1.3)
B13593-01
  Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Table Of Contents
Contents
Go To Index
Index

Previous
Previous
Next
Next
 

Variable One-to-One Mapping

Variable class relationships are similar to polymorphic relationships, except that in this case the target classes are not related through inheritance (and thus not good candidates for an abstract table), but through an interface.

To define variable class relationships in TopLink Workbench, use the variable one-to-one mapping selection, but choose the interface as the reference class. This makes the mapping a variable one-to-one. When defining mappings in Java code, use the VariableOneToOneMapping class.

TopLink supports variable relationships only in one-to-one mappings. It handles this relationship in two ways:

Figure 36-3 Variable One-to-One Mappings with Class Indicator

Description of Figure 36-3  follows
Description of "Figure 36-3 Variable One-to-One Mappings with Class Indicator"

See "Configuring a Relational Variable One-to-One Mapping" for more information.