Java Code Examples for org.apache.ibatis.type.JdbcType#VARCHAR

The following examples show how to use org.apache.ibatis.type.JdbcType#VARCHAR . 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: TaskQueryMapper.java    From activiti-in-action-codes with Apache License 2.0 6 votes vote down vote up
/**
 * 查询所有正在运行的任务
 *
 * @return
 */
@Select("select art.ID_, art.NAME_, art.ASSIGNEE_, art.CREATE_TIME_," +
        " art.PROC_INST_ID_, art.PROC_DEF_ID_, arp.NAME_ PROCESS_NAME" +
        " from ACT_RU_TASK art" +
        " inner join ACT_RE_PROCDEF arp on art.PROC_DEF_ID_ = arp.ID_" +
        " where arp.SUSPENSION_STATE_ = '1'")
@Results(value = {
        @Result(id = true, property = "id", column = "ID_", javaType = String.class, jdbcType = JdbcType.VARCHAR),
        @Result(property = "name", column = "NAME_", javaType = String.class, jdbcType = JdbcType.VARCHAR),
        @Result(property = "assignee", column = "ASSIGNEE_", javaType = String.class, jdbcType = JdbcType.VARCHAR),
        @Result(property = "createTime", column = "CREATE_TIME_", javaType = Date.class, jdbcType = JdbcType.DATE),
        @Result(property = "processInstanceId", column = "PROC_INST_ID_", javaType = String.class, jdbcType = JdbcType.VARCHAR),
        @Result(property = "processDefinitionId", column = "PROC_DEF_ID_", javaType = String.class, jdbcType = JdbcType.VARCHAR),
        @Result(property = "processName", column = "PROCESS_NAME", javaType = String.class, jdbcType = JdbcType.VARCHAR)
})
List<RunningTask> selectRunningTasks();
 
Example 2
Source File: TaskQueryMapper.java    From activiti-in-action-codes with Apache License 2.0 6 votes vote down vote up
/**
 * 查询所有正在运行的任务,根据流程KEY过滤
 *
 * @param processKey
 * @return
 */
@Select("select art.ID_, art.NAME_, art.ASSIGNEE_, art.CREATE_TIME_," +
        " art.PROC_INST_ID_, art.PROC_DEF_ID_, arp.NAME_ PROCESS_NAME" +
        " from ACT_RU_TASK art" +
        " inner join ACT_RE_PROCDEF arp on art.PROC_DEF_ID_ = arp.ID_" +
        " where arp.SUSPENSION_STATE_ = '1' and arp.KEY_ = #{processKey}")
@Results(value = {
        @Result(id = true, property = "id", column = "ID_", javaType = String.class, jdbcType = JdbcType.VARCHAR),
        @Result(property = "name", column = "NAME_", javaType = String.class, jdbcType = JdbcType.VARCHAR),
        @Result(property = "assignee", column = "ASSIGNEE_", javaType = String.class, jdbcType = JdbcType.VARCHAR),
        @Result(property = "createTime", column = "CREATE_TIME_", javaType = Date.class, jdbcType = JdbcType.DATE),
        @Result(property = "processInstanceId", column = "PROC_INST_ID_", javaType = String.class, jdbcType = JdbcType.VARCHAR),
        @Result(property = "processDefinitionId", column = "PROC_DEF_ID_", javaType = String.class, jdbcType = JdbcType.VARCHAR),
        @Result(property = "processName", column = "PROCESS_NAME", javaType = String.class, jdbcType = JdbcType.VARCHAR)
})
List<RunningTask> selectRunningTasksByProcessKey(String processKey);
 
Example 3
Source File: UserMapper.java    From SpringbootMybatis with Apache License 2.0 5 votes vote down vote up
@SelectProvider(type=UserSqlProvider.class, method="selectByExample")
@Results({
    @Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true),
    @Result(column="username", property="username", jdbcType=JdbcType.VARCHAR),
    @Result(column="psw", property="psw", jdbcType=JdbcType.VARCHAR)
})
List<User> selectByExample(UserCriteria example);
 
Example 4
Source File: Mapper.java    From mybaties with Apache License 2.0 5 votes vote down vote up
@Select("select * from users where id = #{value}")
@Results({
  @Result(column="id", property="id"),
  @Result(column="name", property="name"),
  @Result(column="city", property="city", jdbcType=JdbcType.CHAR),
  @Result(column="state", property="state", jdbcType=JdbcType.VARCHAR)
})
User getUser(Integer id);
 
Example 5
Source File: Mapper.java    From mybatis with Apache License 2.0 5 votes vote down vote up
@Select("select * from users where id = #{value}")
@Results({
  @Result(column="id", property="id"),
  @Result(column="name", property="name"),
  @Result(column="city", property="city", jdbcType=JdbcType.CHAR),
  @Result(column="state", property="state", jdbcType=JdbcType.VARCHAR)
})
User getUser(Integer id);