@Documented @Retention(value=RUNTIME) @Target(value=METHOD) @Repeatable(value=Results.class) public @interface Result
Results
Modifier and Type | Optional Element and Description |
---|---|
String |
column
Return the column name(or column label) to map to this argument.
|
boolean |
id
Returns whether id column or not.
|
Class<?> |
javaType
Return the java type for this argument.
|
JdbcType |
jdbcType
Return the jdbc type for column that map to this argument.
|
Many |
many
Returns the mapping definition for collection relationship.
|
One |
one
Returns the mapping definition for single relationship.
|
String |
property
Returns the property name for applying this mapping.
|
Class<? extends TypeHandler> |
typeHandler
Returns the
TypeHandler type for retrieving a column value from result set. |
public abstract boolean id
true
if id column; false
if otherwisepublic abstract String column
public abstract String property
public abstract Class<?> javaType
public abstract JdbcType jdbcType
public abstract Class<? extends TypeHandler> typeHandler
TypeHandler
type for retrieving a column value from result set.TypeHandler
typepublic abstract One one
public abstract Many many
Copyright © 2009–2021 MyBatis.org. All rights reserved.