mybatis中parameterType可以写的别名
来源:互联网 发布:mac 远程登陆windows 编辑:程序博客网 时间:2024/06/05 07:45
_byte
byte
_long
long
_short
short
_int
int
_integer
int
_double
double
_float
float
_boolean
boolean
string
String
byte
Byte
long
Long
short
Short
int
Integer
integer
Integer
double
Double
float
Float
boolean
Boolean
date
Date
decimal
BigDecimal
bigdecimal
BigDecimal
左侧为mybatis自带的别名,右侧为映射类型
比如parameterType="string"其实映射对应的为String类型
<!-- 定义 别名 --><typeAliases><!--单个别名的定义alias:别名,type:别名映射的类型 --><typeAlias type="cn.itcast.mybatis.po.User" alias="user"/> <!-- 批量别名定义指定包路径,自动扫描包下边的pojo,定义别名,别名默认为类名(首字母小写或大写) --><package name="cn.itcast.mybatis.po"/></typeAliases>
resultType:适合使用返回值的数据类型是非自定义的,即jdk的提供的类型 --> <select id="selectPersonCount" resultType="java.lang.Integer"> select count(*) from person </select>
<select id="selectPersonByIdWithMap" parameterType="java.lang.Integer" resultType="java.util.Map"> select * from person p where p.person_id= #{id} </select>
0 0
- mybatis中parameterType可以写的别名
- Mybatis 中selete的parameterType问题
- MyBatis中parameterType的错误使用情况
- Mybatis中parameterType和parameterMap的区别
- mybatis 中parametertype的传入参数问题
- Mybatis中parameterType和parameterMap的区别
- Mybatis中别名的作用
- 在MyBatis的select、insert、update、delete这些元素中都提到了parameterType这个属性。MyBatis现在可以使用的parameterType有基本数据类型和Ja
- mybatis中关于传入参数parameterType
- mybatis中关于传入参数parameterType
- mybatis中关于传入参数parameterType
- 【转载】mybatis中关于传入参数parameterType
- mybatis中关于传入参数parameterType
- mybatis中关于传入参数parameterType
- mybatis中namespace和别名的使用
- MyBatis中关于别名typeAliases的设置
- MyBatis中关于别名typeAliases的设置
- MyBatis的Mapper配置文件的parameterType用法
- ebs version upgrade note
- Apt-get can't connect to 'security.ubuntu.com'
- android 自定义view基础知识
- ECMall的请求与系统跳转
- (python)创建一个可以比较的自定义类
- mybatis中parameterType可以写的别名
- mysql常用语句备份
- 常用的排序算法详解(C#版)
- rand和srand的用法
- 世界顶尖数据科学家看未来十年大数据发展
- 2016年暑假集训盲打首秀赛
- 效果最好的企业管理软件实施方式
- 位同步
- STM32F0 ADC学习