MyBatisSQL配置文件中parameterType
来源:互联网 发布:sql replace替换多个 编辑:程序博客网 时间:2024/06/05 17:05
MyBatisSQL配置文件中的parameterType,支持继承关系:
<select id="test" parameterType="com.edtity.ParamEntity" resultType="HashMap">
例如这段代码中的ParamEntity继承了BaseParamEntity,而在调用的时候需要加#{},否则调用的是当前层级的实体类,例如:
<if test="#{pageEnd} != null"> AND LIMIT 0,#{pageEnd}</if>
加了if中的test中,加了#{},便能取到继承关系中的属性,不加则是在当前类中找相应的属性。
0 0
- MyBatisSQL配置文件中parameterType
- mybatisSQL配置文件中的CDATA区
- MyBatis的Mapper配置文件的parameterType用法
- MyBatis的Mapper配置文件的parameterType用法
- Mybatis如何加载配置文件 源码解读parameterType
- mybatis中关于传入参数parameterType
- mybatis中关于传入参数parameterType
- Mybatis 中selete的parameterType问题
- mybatis中关于传入参数parameterType
- 【转载】mybatis中关于传入参数parameterType
- mybatis中parameterType可以写的别名
- MyBatis中parameterType的错误使用情况
- Mybatis中parameterType和parameterMap的区别
- mybatis 中parametertype的传入参数问题
- mybatis中关于传入参数parameterType
- Mybatis中parameterType和parameterMap的区别
- mybatis中关于传入参数parameterType
- mybatisSql编写小结
- git使用备忘录
- Android--CardView详解
- CUDA存储器模型
- 推荐的网站
- Struts2单文件下载
- MyBatisSQL配置文件中parameterType
- 数组区间和的一种变体
- tcpdump抓包保存文件的结构分析
- ZOJ 1111 &PE 54 oker hands(大模拟扑克)
- 认路
- 第一章上机练习2 求两数的和
- ipython 指定版本
- iOS Game Center 登陆验证实现
- 【Nescafe18】七夕祭