I am using Mybatis 3.2.2. While inserting data dynamically in Oracle I am facing an issue with Timestamp datatype. So I have written custom type handler for TimeStamp. Now for any query whenever Timestamp datatype comes into picture I want to give the call to this custom typeHandler not default one.
But somehow my typeHandler is not visible globally to take up. Mybatis is calling default typeHandler.
I have written below annotation above custom typeHandler
@MappedJdbcTypes(JdbcType.VARCHAR)
@MappedType(value=Timestamp.class)
In mybatis configuration file
<typeHandlers>
<typeHandler handler="com.corp.mapper.TimestampTypeHandler"/>
</typeHandlers>
Please let me know what I am missing.