Skip Headers

# Direct-to-Field Mapping

Previous

Next

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.

Direct-to-Field Mapping Example

Figure: Direct-to-Field Mapping 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`.

Direct-to-Field Mapping

Description of "Direct-to-Field Mapping "

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

- see "Object Type Converter"

- see "Serialized Object Converter"

- see "Type Conversion Converter"

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

See Configuring a Relational Direct-to-Field Mapping for more information.