<resultMap type="Entity" id="entity">
<result column="ret_id" property="key"/>
<result column="re_json_data" property="val" jdbcType="CLOB" typeHandler="org.apache.ibatis.type.ClobTypeHandler"/>
</resultMap>
public class Entity {
private String key;
private String val;
…
}