Frames No Frames
The <javaTypeResolver> element is used to define properties of the Java Type Resolver. The Java Type Resolver is used to calculate Java types from database column information. The default Java Type Resolver attempts to make JDBC DECIMAL and NUMERIC types easier to use by substituting Integral types if possible (Long, Integer, Short, etc.) If this behavior is undesirable, set the property "forceBigDecimals" to "true". You can also substitute your own implementation if you want different behavior than the default. This element is an optional child element of the <abatorContext> element.
|type||This can be used to specify a user provided Java Type Resolver. The class must implement the interface org.apache.ibatis.abator.api.JavaTypeResolver, and must have a public default constructor. The attribute also accepts the special value DEFAULT in which case the default implementation will be used (this has the same effect as not specifying the type).|
This table lists the properties of the default Java type resolver that can be specified with the <property> child element:
|Property Name||Property Values|
This property is used to specify whether Abator should force the use
This element specifies that we always want to use the java.math.BigDecimal type for DECIMAL and NUMERIC columns:
<javaTypeResolver> <property name="forceBigDecimals" value="false" /> </javaTypeResolver>