@Transactional@Modifyingpublic boolean deleteBook(String callno, String studentid) { boolean userFounds= false; Session session=this.sessionFactory.openSession(); System.out.println("check update:"+callno); System.out.println("check update:"+studentid); // delete operation String SQL_QUERY2 ="delete from IssueBook where callno= ? and studentid=?"; Query query= session.createQuery(SQL_QUERY2); query.setParameter(0, callno).executeUpdate(); query.setParameter(1, studentid).executeUpdate(); return userFounds; }我在這里獲得500服務(wù)器異常query.setParameter(0,callno).executeUpdate(); query.setParameter(1,studentid).executeUpdate();請參閱stacktrace:
請求處理失敗;嵌套的異常是org.hibernate.QueryException:
慕運(yùn)維8079593
2021-03-31 13:10:07