Annotation Type 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> {
  // ...
}
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Returns jdbc types to map TypeHandler.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Returns whether map to jdbc null type.
  • Element Details

    • value

      JdbcType[] value
      Returns jdbc types to map TypeHandler.
      Returns:
      jdbc types
    • includeNullJdbcType

      boolean includeNullJdbcType
      Returns whether map to jdbc null type.
      Returns:
      true if map, false if otherwise
      Default:
      false