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]