我正在为休眠中的删除编写以下代码
查询 query = session.createQuery("delete Contact contact where contact.firstName = 'Deepak'");
int row = query.executeUpate();
if (row == 0){
System.out.println("Doesn't deleted any row!");
}
else{
System.out.println("DeletedRow: " + row);
}
它给了我以下错误 Hibernate: delete from CONTACT contact0_ where (contact0_.FIRSTNAME='Deepak') could not execute update query
谁能帮我