org.apache.ibatis.type.ClobTypeHandler Java Examples

The following examples show how to use org.apache.ibatis.type.ClobTypeHandler. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AttachmentMapper.java    From taskana with Apache License 2.0 5 votes vote down vote up
@Select(
    "<script> select CUSTOM_ATTRIBUTES from ATTACHMENT where id = #{attachmentId}"
        + "<if test=\"_databaseId == 'db2'\">with UR </if> "
        + "</script>")
@Results(
    value = {
      @Result(
          property = "customAttributes",
          column = "CUSTOM_ATTRIBUTES",
          javaType = String.class,
          typeHandler = ClobTypeHandler.class)
    })
String getCustomAttributesAsString(@Param("attachmentId") String attachmentId);
 
Example #2
Source File: TaskTestMapper.java    From taskana with Apache License 2.0 5 votes vote down vote up
@Select("select CUSTOM_ATTRIBUTES from TASK where id = #{taskId}")
@Results(
    value = {
      @Result(
          property = "customAttributes",
          column = "CUSTOM_ATTRIBUTES",
          javaType = String.class,
          typeHandler = ClobTypeHandler.class)
    })
String getCustomAttributesAsString(@Param("taskId") String taskId);