码迷,mamicode.com
首页 > 数据库 > 详细

jdbc类型与java类型

时间:2017-11-25 19:22:25      阅读:240      评论:0      收藏:0      [点我收藏+]

标签:double   rtm   pojo   data   har   property   bin   string   red   

 <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类型

标签:double   rtm   pojo   data   har   property   bin   string   red   

原文地址:http://www.cnblogs.com/hi-feng/p/7895955.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!