Skip Headers

# Transformation Mappings

Previous

Next

In some special circumstances, existing mapping types and their default Java to data source type handling may be insufficient. In these special cases, you can consider using a transformation mapping to perform specialized translations between how a value is represented in Java and in the data source.

A transformation mapping is made up of the following two components:

- attribute transformer (see "Configuring Attribute Transformer"): performs the object attribute transformation at read (unmarshall) time

- field transformer (see "Configuring Field Transformer Associations"): performs the object attribute-to-field transformation at write (marshal) time

You can implement a transformer as either a separate class or as a method on your domain object.

Within your implementation of the attribute and field transformer, you can take whatever actions are necessary to transform your application data to suit your data source, and vise versa.

For more information, see the following:

- "Transformation Mapping"

- "EIS Transformation Mapping"

- "XML Transformation Mapping"