HQL语句的问题
帮忙看一下这个语句有问题吗?
public void delete(int id) throws Exception {
String hql = "delete UsersDto where id="+id;
Query q = super.getSession().createQuery(hql);
q.executeUpdate();
super.getSession().beginTransaction().commit();
}
帮忙看一下这个语句有问题吗?
public void delete(int id) throws Exception {
String hql = "delete UsersDto where id="+id;
Query q = super.getSession().createQuery(hql);
q.executeUpdate();
super.getSession().beginTransaction().commit();
}





2008-7-1 08:48



