Use @WriteTransformer
on a TranformationMapping
to transform a single attribute value to a single database column value. Use the @WriteTransformers
annotation to wrap multiple transformations.
Annotation Elements
Table 2-81 describes this annotation's elements.
Table 2-81 @WriteTransformers Annotation Elements
Annotation Element | Description | Default |
---|---|---|
|
An array of |
Usage
You cannot use @WriteTransforme
rs for a read-only mapping.
Examples
See "Using @Transformation Annotation" for an example of how to use the @WriteTransformer annotation
with a Transformation mapping.
See Also
For more information, see:
http://wiki.eclipse.org/EclipseLink/UserGuide/JPA/Print_Version#How_to_Use_the_.40Transformation_Annotation