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

解决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类中的属性名称,要注意大小写

你可能感兴趣的:(property)