public void updateExamproDetails(Double score,Long questionsId,Long examId,Long paperId,Long studentId, Long attemptNum){
try {
String hql="update T_EXAMINATION_PRO_DETAILS t set t.SCORE="+score+" where t.QUESTIONS_ID="+questionsId+" and t.EXAM_ID="+examId+" and t.PAPER_ID="+paperId+" and t.STUDENT_ID="+studentId+" and t.ATTEMPT_NUM="+attemptNum;
this.sqlDAO.executeSQL(hql);
} catch (Exception e) {
e.printStackTrace();
}
}
这是我的代码 ,项目用的SSH框架,更新时库中的数据并没有更新,帮忙解决下!
try {
String hql="update T_EXAMINATION_PRO_DETAILS t set t.SCORE="+score+" where t.QUESTIONS_ID="+questionsId+" and t.EXAM_ID="+examId+" and t.PAPER_ID="+paperId+" and t.STUDENT_ID="+studentId+" and t.ATTEMPT_NUM="+attemptNum;
this.sqlDAO.executeSQL(hql);
} catch (Exception e) {
e.printStackTrace();
}
}
这是我的代码 ,项目用的SSH框架,更新时库中的数据并没有更新,帮忙解决下!
执行hql用sql的 不知道你底层怎么封装的,仔细看看。
错误信息贴出来啊