Package org.apache.ibatis.annotations
Annotation Type Result
-
@Documented @Retention(RUNTIME) @Target(METHOD) @Repeatable(Results.class) public @interface Result
The annotation that specify a mapping definition for the property.- Author:
- Clinton Begin
- See Also:
Results
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.StringcolumnReturn the column name(or column label) to map to this argument.booleanidReturns whether id column or not.java.lang.Class<?>javaTypeReturn the java type for this argument.JdbcTypejdbcTypeReturn the jdbc type for column that map to this argument.ManymanyReturns the mapping definition for collection relationship.OneoneReturns the mapping definition for single relationship.java.lang.StringpropertyReturns the property name for applying this mapping.java.lang.Class<? extends TypeHandler>typeHandlerReturns theTypeHandlertype for retrieving a column value from result set.
-
-
-
-
jdbcType
JdbcType jdbcType
Return the jdbc type for column that map to this argument.- Returns:
- the jdbc type
- Default:
- org.apache.ibatis.type.JdbcType.UNDEFINED
-
-
-
typeHandler
java.lang.Class<? extends TypeHandler> typeHandler
Returns theTypeHandlertype for retrieving a column value from result set.- Returns:
- the
TypeHandlertype
- Default:
- org.apache.ibatis.type.UnknownTypeHandler.class
-
-
-
one
One one
Returns the mapping definition for single relationship.- Returns:
- the mapping definition for single relationship
- Default:
- @org.apache.ibatis.annotations.One
-
-
-
many
Many many
Returns the mapping definition for collection relationship.- Returns:
- the mapping definition for collection relationship
- Default:
- @org.apache.ibatis.annotations.Many
-
-