异常显示:
--- Check the result mapping for the 'GENDER' property.
--- Cause: java.sql.SQLException: 列名无效
--- Check the result mapping for the 'GENDER' property.
--- Cause: java.sql.SQLException: 列名无效
解决方案 »
- hibernate如何取出某个sequence的nextval
- hibernate插入数据的时候报错!大家帮我看一下!!
- 在jsp中如何将数据库表中的一个字段读出来并添加到下拉列表框中(求一段代码)
- 如何用jsp上传文件到ftp服务器?
- 经验丰富的请进..Applet可不可以访问数据库? 本地的是否也可以?
- 用Random函数产生一定长度的字符串
- 关于EJB 本地接口问题??
- weblogic702 中怎样配置jms server 和 mdb 使用的jndi
- 急!!!高分200求通用的J2EE解决方案文章,最好是英文文章。
- JAVA MAP里的VALUE算数计算优化
- jsp链接DB2数据库!
- iBatis SqlMap API 问题?
<result property="id" column="ID"/>
<result property="name" column="NAME"/>
<result property="address" column="ADDRESS"/>
<result property="gender" column="GENDER"/>
<result property="age" column="AGE"/>
</resultMap> <select id="getAllAuthor" resultMap="accountResult" >
select $fieldname$ from author
</select>再检查com.ibatis.Author是否属性都对应上了。
解决方法:请在<select id="getAllAuthor" resultClass="java.util.HashMap">
中添加remapResults="true",即<select id="getAllAuthor" remapResults="true" resultClass="java.util.HashMap">
楼主给讲解讲解贝?