注释类型 ColumnTransformer


  • @Target({FIELD,METHOD})
    @Retention(RUNTIME)
    @Repeatable(ColumnTransformers.class)
    public @interface ColumnTransformer
    Custom SQL expression used to read the value from and write a value to a column. Use for direct object loading/saving as well as queries. The write expression must contain exactly one '?' placeholder for the value. For example: read="decrypt(credit_card_num)" write="encrypt(?)"
    作者:
    Emmanuel Bernard
    另请参阅:
    ColumnTransformers
    • 可选元素概要

      可选元素 
      修饰符和类型 可选元素 说明
      String forColumn
      (Logical) column name for which the expression is used.
      String read
      Custom SQL expression used to read from the column.
      String write
      Custom SQL expression used to write to the column.
    • 元素详细资料

      • forColumn

        String forColumn
        (Logical) column name for which the expression is used. This can be left out if the property is bound to a single column
        默认值:
        ""
      • read

        String read
        Custom SQL expression used to read from the column.
        默认值:
        ""
      • write

        String write
        Custom SQL expression used to write to the column. The write expression must contain exactly one '?' placeholder for the value.
        默认值:
        ""