jdbc类型与java类型
Posted 言_曦
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了jdbc类型与java类型相关的知识,希望对你有一定的参考价值。
<resultMap id="BaseResultMap" type="com.bjsxt.portl.pojo.User" > <id column="u_id" property="uId" jdbcType="INTEGER" /> <result column="role_id" property="roleId" jdbcType="VARCHAR" /> <result column="department_id" property="departmentId" jdbcType="VARCHAR" /> <result column="u_username" property="uUsername" jdbcType="VARCHAR" /> <result column="u_pwd" property="uPwd" jdbcType="VARCHAR" /> <result column="u_salt" property="uSalt" jdbcType="VARCHAR" /> <result column="u_name" property="uName" jdbcType="INTEGER" /> <result column="u_number" property="uNumber" jdbcType="VARCHAR" /> <result column="data_leader" property="dataLeader" jdbcType="VARCHAR" /> <result column="u_addtate" property="uAddtate" jdbcType="VARCHAR" /> </resultMap>
JDBC Type Java Type
CHAR String
VARCHAR String
LONGVARCHAR String
NUMERIC java.math.BigDecimal
DECIMAL java.math.BigDecimal
BIT boolean
BOOLEAN boolean
TINYINT byte
SMALLINT short
INTEGER int
BIGINT long
REAL float
FLOAT double
DOUBLE double
BINARY byte[]
VARBINARY byte[]
LONGVARBINARY byte[]
DATE java.sql.Date
TIME java.sql.Time
TIMESTAMP java.sql.Timestamp
CLOB Clob
BLOB Blob
ARRAY Array
DISTINCT mapping of underlying type
STRUCT Struct
REF Ref
DATALINK java.net.URL[color=red][/color]
以上是关于jdbc类型与java类型的主要内容,如果未能解决你的问题,请参考以下文章