| 
 | EclipseLink 2.0.0, build 'v20091127-r5931' API Reference | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Target(value={METHOD,FIELD})
@Retention(value=RUNTIME)
public @interface ReadTransformerAnnotation for org.eclipse.persistence.mappings.TransformationMapping. Unless the TransformationMapping is write-only, it should have a ReadTransformer, it defines transformation of database column(s) value(s) into attribute value. Also unless it's a read-only mapping, either WriteTransformer annotation or WriteTransformers annotation should be specified. Each WriteTransformer defines transformation of the attribute value to a single database column value (column is specified in the WriteTransformer).
Transformation, 
WriteTransformer, 
Transformation can be specified within an Entity, MappedSuperclass 
 and Embeddable class.| Optional Element Summary | |
|---|---|
|  java.lang.String | methodThe mapped class must have a method with this name which returns a value to be assigned to the attribute (not assigns the value to the attribute). | 
|  java.lang.Class | transformerClassUser-defined class that must implement the org.eclipse.persistence.mappings.transformers.AttributeTransformer interface. | 
public abstract java.lang.Class transformerClass
public abstract java.lang.String method
| 
 | EclipseLink 2.0.0, build 'v20091127-r5931' API Reference | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||