Annotation Interface DataTransformer


@Target({FIELD,METHOD}) @Retention(RUNTIME) public @interface DataTransformer
Generic version of allowing transformations to be applied when reading or writing data to and from the a database. Inspired by Hibernate's ColumnTransformer concept.
Since:
1.0
Author:
graemerocher
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
    An expression use to write a value to the database.
  • Element Details

    • read

      String read
      Returns:
      An expression used to read a value of the database.
      Default:
      ""
    • write

      String write
      An expression use to write a value to the database.
      Returns:
      The expression
      Default:
      ""