Oracle TopLink Developer's Guide
10g Release 3 (10.1.3) B13593-01 |
|
Previous |
Next |
All object-relational mappings map an attribute in a Java object to field in the database. The attribute name is the name of the attribute being mapped. The name is as specified in the reference class (see "Configuring Reference Class").
Table 50-4 summarizes which object-relational mappings support this option.
Table 50-4 Mapping Support for Attribute Name
Use oracle.toplink.mappings.DatabaseMapping
method setAttributeName
to specify the name of the attribute being mapped.
Example 50-2 shows how to use this method with a ReferenceMapping
that maps the manager
attribute of the Employee
class.