Module eclipselink

Annotation Interface XmlTransformation


@Target({METHOD,FIELD}) @Retention(RUNTIME) public @interface XmlTransformation
XmlTransformation is an optional annotation for XMLTransformationMapping. XMLTransformationMapping allows to map an attribute to one or more database columns.

XmlTransformation annotation is an optional part of XMLTransformationMapping definition. Unless the XMLTransformationMapping is write-only, it should have a XmlReadTransformer, defining transformation of xml data value(s)into attribute value. Also, unless it's a read-only mapping, either XmlWriteTransformer annotation or XmlWriteTransformers annotation should be specified. Each XmlWriteTransformer defines transformation of the attribute value to a single xml field value (XPath is specified in the XmlWriteTransformer).

See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    The optional element is a hint whether the value of the field or property may be null.
  • Element Details

    • optional

      boolean optional
      The optional element is a hint whether the value of the field or property may be null. It is disregarded for primitive types, which are considered non-optional.
      Default:
      true