resultMap使用不当导致出现There is no WRITEABLE property named 'student_id' in class 'com
来源:互联网 发布:java设计模式使用场景 编辑:程序博客网 时间:2024/06/05 14:38
resultMap使用不当导致出现There is no WRITEABLE property named 'student_id' in class 'com
by admin on 2014-04-25 14:34:37 in , 2650次
BUG的原因:
1. resultMap是结果集的关系映射,property是实体属性(也就是Student.java里面指定的成员变量),column是数据表中与之对应的属性
2. 当指定了resultMap后,必须保证property在class中能找到,并且名字一致,并且有对应的get(property名)、set(propety名)方法,因为映射的时候是用property名字在class中找到get、set方法的
0 0
- resultMap使用不当导致出现There is no WRITEABLE property named 'student_id' in class 'com
- resultMap使用不当导致出现There is no WRITEABLE property named 'student_id' in class 'com.ssi.model.Stud
- There is no WRITEABLE property named 'unitcoefficient' in class 'com.rhyton.pems.core.domain.EnergyM
- ProbeException解决办法:There is no WRITEABLE property named 'id' in class 'java.lang.String'
- com.ibatis.common.beans.ProbeException: There is no READABLE property named 'propertyName' in class 'className'
- Mybatis-异常-There is no getter for property named 'VARCHAR' in 'class com.xxx.xxxxx
- com.ibatis.common.beans.ProbeException: There is no READABLE property named 'baiduIndex' in class 'j
- There is no getter for property named 'xxx' in 'class com.xuezhixin.mls.web.model.yyy
- There is no getter for property named 'depart' in 'class com.xuezhixin.mls.web.model.Major'
- com.ibatis.common.beans.ProbeException: There is no READABLE property named 'baiduIndex' in class '
- [SSM]There is no getter for property named 'token_exptime' in 'class com.hdu.model.Student'
- There is no getter for property named 'itmesCustom' in 'class com.ssm.po.Ite
- There is no getter for property named 'value' in 'class com.hl.myabtis.first.beas.User'
- There is no getter for property named 'ypxxCustom'in'class com.onespace.ypcg.pojo.GysypmlQueryVo'
- There is no setter for property named 'empId' in 'class com.my.entity.Dept'
- bug解决:There is no getter for property named 'new_driver_id' in 'class com.bjw.entity.Driver'
- There is no setter for property named 'storeId' in 'class com.auth.entity.Auth'
- There is no getter for property named 'user' in 'class com.gao.model.Message
- 最新版IDE工具携手云计算,助力JAVA开发快速发展
- SVM学习笔记
- 循环遍历生成button
- pdf转换成jpg格式的两种方法
- 【最短路】【STL】CSU 1808 地铁 (2016湖南省第十二届大学生计算机程序设计竞赛)
- resultMap使用不当导致出现There is no WRITEABLE property named 'student_id' in class 'com
- 使用soap调用wsdl的接口实战
- Hibernate之Criteria查询
- Linux时间子系统之二:表示时间的单位和结构
- Unity和Cocos2D在2D游戏开发上的对比
- 【LightOJ】1305 - Area of a Parallelogram(求平行四边形面积)
- 数据仓库分层
- 在一台电脑上使用两个不同版本的JDK
- spring+hibernate+struts2; spring +mybaits+struts2框架分析和搭建