![]() |
#2
netstriker2008-07-02 00:10
|
帮忙看一下这个语句有问题吗?
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();
}