hibernate3批量删除记录
public int dropNews(Integer[] newsids) throws Exception {
// TODO Auto-generated method stub
String hql = "delete News where n_id in ( :newsids)";
Query query = this.getSession().createQuery(hql);
query.setParameterList("newsids",newsids);
int dels = query.executeUpdate();
return dels;
}