Annotation Type 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
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String read  
      java.lang.String write
      An expression use to write a value to the database.
    • Element Detail

      • read

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

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