62,614
社区成员
发帖
与我相关
我的任务
分享
this.getHibernateTemplate().find("delete from Asset");
public void delExcel() throws DataAccessException {
this.getHibernateTemplate().execute(new HibernateCallback() {
public Object doInHibernate(Session session) throws SQLException,
HibernateException {
Query query = session.createQuery(
"delete Asset ");
query.executeUpdate();
return null;
}
});
}