Specifying Class Indicator

A source table has an indicator column that specifies the target table through the class indicator field, as show in the following illustration. The EMPLOYEE table has a TYPE column that indicates the target for the row (either PHONE or EMAIL).

Figure 5-19 Class indicator Field


<p>This figure shows the implementation of a class indicator field. The source 
  table (EMPLOYEE table) has an indicator column (TYPE) that specifies the target 
  the target for the row (either PHONE or EMAIL).

The principles of defining such a variable class relationship are similar to defining a normal one-to-one relationship, except:


Related Topics

About TopLink Mapping Types
Working with Relationship Mappings
Working with Variable One-to-One Mappings

 

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