解决There is no READABLE property named 'SID'问题

来源:互联网 发布:淘宝买灯具可靠吗 编辑:程序博客网 时间:2024/05/22 05:13

解决There is no READABLE property named 'SID'问题

<insert id="insertStudent" parameterClass="Student">
  INSERT INTO STUDENT(SID,  SNAME,  MAJOR,  BIRTH,  SCORE)
  VALUES             (#sid#,#sname#,#major#,#birth#,#score#)
 </insert>

上面大写的是数据库中表的字段名称

下面的小写的sid是Student类中的属性名称,要注意大小写

 

原创粉丝点击