Module eclipselink

Annotation Type ReadTransformer

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String method
      The 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).
      Class<?> transformerClass
      User-defined class that must implement the org.eclipse.persistence.mappings.transformers.AttributeTransformer interface.
    • Element Detail

      • transformerClass

        Class<?> transformerClass
        User-defined class that must implement the org.eclipse.persistence.mappings.transformers.AttributeTransformer interface. The class will be instantiated, its buildAttributeValue will be used to create the value to be assigned to the attribute. Either transformerClass or method must be specified, but not both.
        Default:
        void.class
      • method

        String method
        The 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). Either transformerClass or method must be specified, but not both.
        Default:
        ""