hql語句:dao.executeHql("delete Student As s where s.course.teacher.tno"=tno);錯誤信息:返回sql語句:delete from Per_Student cross join Per_COURSE course1_ where tno=12000002WARN: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'cross join Per_COURSE course1_ where tno=12000002' at line 1student關聯course,course關聯teacher,我很好奇怎么delete時沒有關聯到teacher呢,這條hql語句應該是沒有問題的吧?
hibernate hql刪除異常
保守愛
2016-03-24 11:40:34