mybatis sqlmap中property遇到的问题
2015-10-26 13:45
751 查看
<select id="selectRoleList" resultClass="role" parameterClass="roleVO" > select * from t_role where 1=1 <isNotEmpty prepend="and" property="roleId"> id=#roleId# </isNotEmpty> <isNotEmpty prepend="and" property="orgId"> orgId=#orgId# </isNotEmpty> </select>
以上里面有parameterClass是自定义的一个类其中有属性roleId、orgId等
<select id="selectProductkey" parameterClass="java.lang.String" resultClass="com.arcsoft.web.adminconsolews.model.caas.ProductKeyManage"> SELECT pkid,productkey,productSecret,`status`,softwareId,appMajorInformation, appMajorInformation,oemInformation,generateTime,deadlineTime,iosP12Pwd, iosP12IsSdbx,p12ExpirationTime,androidApiKey,moduleIdForPurchase,realModuleId from oauth_product_key where 1=1 <isNotEmpty prepend="and"> productkey=#productKey# </isNotEmpty> </select>
而这个里面parameterClass是String,没有什么属性,故而isNotEmpty中没有property属性,也应该加property属性,否则会报错。
相关文章推荐
- 使用 Oracle GoldenGate 在 Microsoft SQL Server 和 Oracle Database 之间复制事务
- MySQL server has gone away
- mysql 第23章 监控
- 32位的PL/SQL developer如何连接64位的ORACLE 11g
- Oracle数据库备份、恢复 - 使用PL/SQL Developer 导入、导出Oracle数据库
- 理解MySQL——架构与概念
- PostgreSQL数据库 OLTP高并发请求性能优化
- MySQL主从架构配置案例
- PowerDesigner16建表在SQL SERVER 2008报 对象名 'sysproperties' 无效。
- go mysql
- adb文件copy及sqlite3:not found篇
- LR通过snmp监控linux下的mysql
- Sql 2005 维护笔记
- MySQL中delete,truncate与drop的区别
- 监控MySQL服务是否正常
- mysql基准测试工具tpcc-mysql安装、使用、结果解读
- 【未完】[MySQL集群架构] 多主一从的一种简单方案
- Android之ContentProvider整合SQLite数据库实例
- mongo语法和mysql语法对比学习
- sql developer如何连接mysql数据库