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

来源:互联网 发布:我的知乎2016 编辑:程序博客网 时间:2024/05/21 17:59


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

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

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


 

原创粉丝点击