当前位置: 首页>>代码示例>>Java>>正文


Java JdbcType.VARCHAR属性代码示例

本文整理汇总了Java中org.apache.ibatis.type.JdbcType.VARCHAR属性的典型用法代码示例。如果您正苦于以下问题:Java JdbcType.VARCHAR属性的具体用法?Java JdbcType.VARCHAR怎么用?Java JdbcType.VARCHAR使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.apache.ibatis.type.JdbcType的用法示例。


在下文中一共展示了JdbcType.VARCHAR属性的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: selectByExample

@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);
 
开发者ID:RayeWang,项目名称:SpringbootMybatis,代码行数:7,代码来源:UserMapper.java

示例2: select

@Select({
        "select",
        "u.id, u.name, u.email, u.creator, u.flag, u.last_login_time,c.name createUser",
        "from admin_user u LEFT JOIN admin_user c ON u.creator=c.id",
        "where u.name LIKE #{query} LIMIT #{begin},#{pagesize}"
})
@Results({
        @Result(column="id", property="id", jdbcType= JdbcType.INTEGER, id=true),
        @Result(column="name", property="name", jdbcType= JdbcType.VARCHAR),
        @Result(column="psw", property="psw", jdbcType= JdbcType.VARCHAR),
        @Result(column="email", property="email", jdbcType= JdbcType.VARCHAR),
        @Result(column="creator", property="creator", jdbcType= JdbcType.INTEGER),
        @Result(column="flag", property="flag", jdbcType= JdbcType.INTEGER),
        @Result(column="last_login_time", property="lastLoginTime", jdbcType= JdbcType.TIMESTAMP)
})
List<AdminUser> select(@Param("begin") int begin, @Param("pagesize") int pageSize, @Param("query") String query);
 
开发者ID:RayeWang,项目名称:easyadmin,代码行数:16,代码来源:AdminUserMapper.java

示例3: selectByExample

@SelectProvider(type=MenuSqlProvider.class, method="selectByExample")
@Results({
    @Result(column="id", property="id", jdbcType= JdbcType.INTEGER, id=true),
    @Result(column="name", property="name", jdbcType= JdbcType.VARCHAR),
    @Result(column="url", property="url", jdbcType= JdbcType.VARCHAR),
    @Result(column="icon", property="icon", jdbcType= JdbcType.VARCHAR),
    @Result(column="menu_type", property="menuType", jdbcType= JdbcType.CHAR),
    @Result(column="display", property="display", jdbcType= JdbcType.INTEGER),
    @Result(column="parent_id", property="parentId", jdbcType= JdbcType.INTEGER),
    @Result(column="creator", property="creator", jdbcType= JdbcType.INTEGER),
    @Result(column="create_time", property="createTime", jdbcType= JdbcType.TIMESTAMP),
    @Result(column="update_user", property="updateUser", jdbcType= JdbcType.INTEGER),
    @Result(column="update_time", property="updateTime", jdbcType= JdbcType.TIMESTAMP),
    @Result(column="status", property="status", jdbcType= JdbcType.CHAR)
})
List<Menu> selectByExample(MenuCriteria example);
 
开发者ID:RayeWang,项目名称:easyadmin,代码行数:16,代码来源:MenuMapper.java

示例4: selectByExample

@SelectProvider(type=RoleSqlProvider.class, method="selectByExample")
@Results({
    @Result(column="id", property="id", jdbcType= JdbcType.INTEGER, id=true),
    @Result(column="name", property="name", jdbcType= JdbcType.VARCHAR),
    @Result(column="create_time", property="createTime", jdbcType= JdbcType.TIMESTAMP),
    @Result(column="creator", property="creator", jdbcType= JdbcType.INTEGER),
    @Result(column="update_time", property="updateTime", jdbcType= JdbcType.TIMESTAMP),
    @Result(column="update_user", property="updateUser", jdbcType= JdbcType.INTEGER),
    @Result(column="description", property="description", jdbcType= JdbcType.VARCHAR)
})
List<Role> selectByExample(RoleCriteria example);
 
开发者ID:RayeWang,项目名称:easyadmin,代码行数:11,代码来源:RoleMapper.java

示例5: select

@Select({
        "select",
        "r.id, r.name, r.create_time, r.creator,u.name as creator, r.description",
        "from role r LEFT JOIN admin_user u ON r.creator=u.id",
        "where r.name like #{query} LIMIT #{begin},#{pagesize}"
})
@Results({
        @Result(column="id", property="id", jdbcType= JdbcType.INTEGER, id=true),
        @Result(column="name", property="name", jdbcType= JdbcType.VARCHAR),
        @Result(column="create_time", property="createTime", jdbcType= JdbcType.TIMESTAMP),
        @Result(column="creator", property="creator", jdbcType= JdbcType.INTEGER),
        @Result(column="description", property="description", jdbcType= JdbcType.VARCHAR)
})
List<Role> select(@Param("begin") int begin, @Param("pagesize") int pageSize, @Param("query") String query);
 
开发者ID:RayeWang,项目名称:easyadmin,代码行数:14,代码来源:RoleMapper.java

示例6: selectByExample

@SelectProvider(type=AdminUserSqlProvider.class, method="selectByExample")
@Results({
    @Result(column="id", property="id", jdbcType= JdbcType.INTEGER, id=true),
    @Result(column="name", property="name", jdbcType= JdbcType.VARCHAR),
    @Result(column="psw", property="psw", jdbcType= JdbcType.VARCHAR),
    @Result(column="email", property="email", jdbcType= JdbcType.VARCHAR),
    @Result(column="update_time", property="updateTime", jdbcType= JdbcType.TIMESTAMP),
    @Result(column="update_user", property="updateUser", jdbcType= JdbcType.INTEGER),
    @Result(column="creator", property="creator", jdbcType= JdbcType.INTEGER),
    @Result(column="flag", property="flag", jdbcType= JdbcType.INTEGER),
    @Result(column="last_login_time", property="lastLoginTime", jdbcType= JdbcType.TIMESTAMP)
})
List<AdminUser> selectByExample(AdminUserCriteria example);
 
开发者ID:RayeWang,项目名称:easyadmin,代码行数:13,代码来源:AdminUserMapper.java

示例7: IN

/**
 *查询用户有权限的菜单列表
 * @param userid
 * @return
 */
@Select({"SELECT id, name, url, icon, menu_type, display, parent_id FROM menu WHERE id IN(",
        "SELECT menuid FROM role_menu WHERE roleid IN ",
        "(SELECT roleid FROM user_role WHERE userid=#{userid}) OR roleid=-1) AND menu_type<>'2' AND `status`='1'"})
@Results({
        @Result(column="id", property="id", jdbcType= JdbcType.INTEGER, id=true),
        @Result(column="name", property="name", jdbcType= JdbcType.VARCHAR),
        @Result(column="url", property="url", jdbcType= JdbcType.VARCHAR),
        @Result(column="icon", property="icon", jdbcType= JdbcType.VARCHAR),
        @Result(column="menu_type", property="menuType", jdbcType= JdbcType.CHAR),
        @Result(column="display", property="display", jdbcType= JdbcType.INTEGER),
        @Result(column="parent_id", property="parentId", jdbcType= JdbcType.INTEGER),
        @Result(column="status", property="status", jdbcType= JdbcType.CHAR)
})
List<Menu> selectByUser(int userid);
 
开发者ID:RayeWang,项目名称:easyadmin,代码行数:19,代码来源:MenuMapper.java

示例8: JOIN

@Select({"SELECT r.id, r.name, r.create_time, r.creator, r.description,u.name creatorUser,u1.userid ",
    "FROM role r LEFT JOIN admin_user u ON r.creator=u.id",
    " LEFT JOIN (SELECT roleid,userid FROM user_role WHERE userid=#{userId}) u1 ON r.id=u1.roleid  "})
@Results({
        @Result(column="id", property="id", jdbcType= JdbcType.INTEGER, id=true),
        @Result(column="name", property="name", jdbcType= JdbcType.VARCHAR),
        @Result(column="create_time", property="createTime", jdbcType= JdbcType.TIMESTAMP),
        @Result(column="creator", property="creator", jdbcType= JdbcType.INTEGER),
        @Result(column="description", property="description", jdbcType= JdbcType.VARCHAR),
        @Result(column = "creatorUser",property = "creatorUser",jdbcType = JdbcType.INTEGER)
})
List<Role> selectByUserId(int userId);
 
开发者ID:RayeWang,项目名称:easyadmin,代码行数:12,代码来源:UserRoleMapper.java

示例9: selectByExample

@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="password", property="password", jdbcType=JdbcType.VARCHAR),
    @Result(column="role", property="role", jdbcType=JdbcType.INTEGER)
})
List<User> selectByExample(UserExample example);
 
开发者ID:shenhuanet,项目名称:ssm-server,代码行数:8,代码来源:UserMapper.java

示例10: selectByPrimaryKey

/**
 * This method was generated by MyBatis Generator.
 * This method corresponds to the database table SysCode
 *
 * @mbggenerated Wed Jul 12 20:57:03 CST 2017
 */
@Select({
    "select",
    "codeId, codeTypeId, codeName, parentCodeId",
    "from SysCode",
    "where codeId = #{codeId,jdbcType=INTEGER}"
})
@Results({
    @Result(column="codeId", property="codeId", jdbcType=JdbcType.INTEGER, id=true),
    @Result(column="codeTypeId", property="codeTypeId", jdbcType=JdbcType.INTEGER),
    @Result(column="codeName", property="codeName", jdbcType=JdbcType.VARCHAR),
    @Result(column="parentCodeId", property="parentCodeId", jdbcType=JdbcType.INTEGER)
})
SysCode selectByPrimaryKey(Integer codeId);
 
开发者ID:chenyurong,项目名称:china-district-syscode,代码行数:19,代码来源:SysCodeMapper.java

示例11: getUser

@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);
 
开发者ID:yuexiahandao,项目名称:MybatisCode,代码行数:8,代码来源:Mapper.java

示例12: pg_encoding_to_char

@Select("SELECT datname, rolname, datctype, pg_encoding_to_char(encoding) AS encode "
		+ "FROM pg_database, pg_roles "
		+ "WHERE pg_database.encoding=#{encodingType} "
		+ "AND pg_database.datdba=pg_roles.oid;")
@Results(value = {
		@Result(property="databaseName", column="datname", jdbcType=JdbcType.VARCHAR),
		@Result(property="databaseDbaName", column="rolname", jdbcType=JdbcType.VARCHAR),
		@Result(property="databaseCtype", column="datctype", jdbcType=JdbcType.VARCHAR),
		@Result(property="databaseEncode", column="encode", jdbcType=JdbcType.VARCHAR)
})
List<PgDatabaseInfo> getUtf8Databases(@Param("encodingType") int encodeType);
 
开发者ID:xiaowing,项目名称:various_demos,代码行数:11,代码来源:PgDatabaseMapper.java

示例13: selectMany

@SelectProvider(type=SqlProviderAdapter.class, method="select")
@Results(id="SimpleTableResult", value= {
        @Result(column="A_ID", property="id", jdbcType=JdbcType.INTEGER, id=true),
        @Result(column="first_name", property="firstName", jdbcType=JdbcType.VARCHAR),
        @Result(column="last_name", property="lastName", jdbcType=JdbcType.VARCHAR, typeHandler=LastNameTypeHandler.class),
        @Result(column="birth_date", property="birthDate", jdbcType=JdbcType.DATE),
        @Result(column="employed", property="employed", jdbcType=JdbcType.VARCHAR, typeHandler=YesNoTypeHandler.class),
        @Result(column="occupation", property="occupation", jdbcType=JdbcType.VARCHAR)
})
List<SimpleTableRecord> selectMany(SelectStatementProvider selectStatement);
 
开发者ID:mybatis,项目名称:mybatis-dynamic-sql,代码行数:10,代码来源:SimpleTableAnnotatedMapper.java

示例14: selectByPrimaryKey

@Select(value = "select id, username, password, nick_name, sex, register_date from user where id = #{id,jdbcType=INTEGER}")
@Results(value = { @Result(column = "nick_name", property = "nickName", jdbcType = JdbcType.VARCHAR), @Result(column = "register_date", property = "registerDate", jdbcType = JdbcType.TIMESTAMP) })
User selectByPrimaryKey(Integer id);
 
开发者ID:wooui,项目名称:springboot-training,代码行数:3,代码来源:UserMapper.java


注:本文中的org.apache.ibatis.type.JdbcType.VARCHAR属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。