日期:2014-05-20  浏览次数:20664 次

hql怎么执行不了...在线等
Object[] params = new Object[]{normalScore,midtermScore,terminalScore,experimentScore,totalScore,remark,studentId};
String hql = "update MarkAssociation ma set ma.normalScore=? and ma.midtermScore=? and ma.terminalScore=? and ma.experimentScore=? and ma.totalScore=? and ma.remark=? where ma.student.studentId=?" ;
this.updateByQuery(hql,params);

------解决方案--------------------
HQL写错了吧
update MarkAssociation ma set ma.normalScore=? , ma.midtermScore=? , ma.terminalScore=? and ma.experimentScore=? , ma.totalScore=?, ma.remark=? where ma.student.studentId=?
------解决方案--------------------
探讨
Object[] params = new Object[]{normalScore,midtermScore,terminalScore,experimentScore,totalScore,remark,studentId};
String hql = "update MarkAssociation ma set ma.normalScore=? and ma.midtermScore=? ……

------解决方案--------------------
探讨

HQL写错了吧
update MarkAssociation ma set ma.normalScore=? , ma.midtermScore=? , ma.terminalScore=? and ma.experimentScore=? , ma.totalScore=?, ma.remark=? where ma.student.studentId=?