Skip Headers
Oracle® TopLink Developer's Guide
10g (10.1.3.1.0)
B28218-01
  Go To Documentation Library
Library
Go To Product List
Product
Go To Table Of Contents
Contents
Go To Index
Index

Previous
Previous
 
Next
Next
 

Direct-to-Field Mapping

Use direct-to-field mappings to map primitive object attributes, or non persistent regular objects, such as the JDK classes. For example, use a direct-to-field mapping to store a String attribute in a VARCHAR field.

Example 33-1 Direct-to-Field Mapping Example

Figure 33-1 illustrates a direct-to-field mapping between the Java attribute city and the relational database column CITY. Similarly, direct-to-field mappings could be defined from country to COUNTRY, id to ADDRESS_ID, established to EST_DATE, and province to PROVINCE.

Figure 33-1 Direct-to-Field Mapping

Description of Figure 33-1 follows
Description of "Figure 33-1 Direct-to-Field Mapping "

You can use a direct-to-field mapping with any of the following Converter instances:

You can use a direct-to-field mapping with a change policy (see "Configuring Change Policy".

See Chapter 35, "Configuring a Relational Direct-to-Field Mapping" for more information.