SSH中我创建一个学生表,以学号为主键,加入我插入了一条学生的数据,SSH中更新学号时发生异常,信息如下:Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1; nested exception is org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1。是不是SSH不能直接更新主键,只能先删除,再插入一条主键更新的数据?是不是只能学生表用自增列作为主键,这样可以随意更改学号?有没有什么办法可以直接更新主键?