@Documented @Retention(value=RUNTIME) @Target(value=TYPE) public @interface MappedJdbcTypes
TypeHandler
.
How to use:
@MappedJdbcTypes({JdbcType.CHAR, JdbcType.VARCHAR}) public class StringTrimmingTypeHandler implements TypeHandler<String> { // ... }
Modifier and Type | Required Element and Description |
---|---|
JdbcType[] |
value
Returns jdbc types to map
TypeHandler . |
Modifier and Type | Optional Element and Description |
---|---|
boolean |
includeNullJdbcType
Returns whether map to jdbc null type.
|
public abstract JdbcType[] value
TypeHandler
.Copyright © 2009–2021 MyBatis.org. All rights reserved.