Skip Headers

# Configuring Attribute Transformer

Previous

Next

A transformation mapping is made up of an attribute transformer for field-to-attribute transformation at read (unmarshall) time and one or more field transformers for attribute-to-field transformation at write (marshall) time (see "Configuring Field Transformer Associations").

This section describes how to configure the attribute transformer that a transformation mapping uses to perform the field-to-attribute transformation at read (unmarshal) time.

You can do this using either a method or class-based transformer.

A method-based transformer must map to a method in the domain object.

A class-based transformer allows you to place the transformation code in another class, making this approach non-intrusive: that is, your domain object does not need to implement a TopLink interface or provide a special transformation method

Table: Mapping Support for Attribute Transformer summarizes which mappings support this option.

Mapping Support for Attribute Transformer

Mapping | Using TopLink Workbench | Using Java
--- | --- | ---
Relational Mappings |  |
Transformation Mapping |  |
EIS Mappings |  |
EIS Transformation Mapping |  |
XML Mappings |  |
XML Transformation Mapping |  |