There is a configuration:
<resultMap id="mapId" type="package.MyType">
<result property="prop1" column="column1" />
<result property="prop2" column="column2" />
<result property="prop3" column="column3" typeHandler="package.MyTypeHandler" />
</resultMap>
<select id="selectStat" resultMap="mapId">
SELECT `column1`, `column2`, `column3`
FROM `table`;
</select>
For the select statement, everything is fine, the handler is called.
How can I write an INSERT statement to call the same handler for column3 when inserting data?
source
share