Oracle TopLink Developer's Guide
10g Release 3 (10.1.3) B13593-01 |
|
![]() Previous |
![]() Next |
When mapping an attribute that involves a relationship to another class, you must specify the reference class–the Java class to which the mapped attribute refers.
Table 50-3 summarizes which object-relational mappings support this option.
Table 50-3 Mapping Support for Reference Class
Use oracle.toplink.mappings.ForeignReferenceMapping
method setReferenceClass
to specify the target class of the attribute being mapped.
Example 50-1 shows how to use this method with a ReferenceMapping
that maps the manager
attribute of the Employee
class.