XML Element: result
This is a child element of the resultMap element. This provides the mapping of a column in the result set to a property of the resultMap.class. The attributes typically used are -
Key | Relation Type | Purpose |
---|---|---|
property | Attribute | This is the name of the property within the class provided for the result map. In case the class happens to be java.util.HashMap, then this is used as the Key while adding the element into the Map. If the class is not a collection, then this is interpreted as a Bean property using which the value is stored. |
nullValue | Attribute | The value to be used as default if the result set has the value as null. |
column | Attribute | This is the name of the column as present in the result set. |
javaType | Attribute | This is the java type to which the column value should be converted to. This should be the fully defined class name |
jdbcType | Attribute | The JDBC Type. Refer to iBatis documentation for the value list of values. |