Annotation Interface MappedJdbcTypes


@Documented @Retention(RUNTIME) @Target(TYPE) public @interface MappedJdbcTypes
The annotation that specify jdbc types to map TypeHandler.

How to use:

 @MappedJdbcTypes({JdbcType.CHAR, JdbcType.VARCHAR})
 public class StringTrimmingTypeHandler implements TypeHandler<String> {
   // ...
 }
 
作者:
Eduardo Macarron
  • 必需元素概要

    所需元素
    修饰符和类型
    必需的元素
    说明
    Returns jdbc types to map TypeHandler.
  • 可选元素概要

    可选元素
    修饰符和类型
    可选元素
    说明
    boolean
    Returns whether map to jdbc null type.
  • 元素详细资料

    • includeNullJdbcType

      boolean includeNullJdbcType
      Returns whether map to jdbc null type.
      返回:
      true if map, false if otherwise
      默认值:
      false