BlogJava 联系 聚合 管理  

Blog Stats

文章档案


hanbing



public int deleteById(Integer ad_id) {
  log.debug("deleting WedAdmin instance");
  try {
   String hql = "delete from WedAdmin where ad_id = :id"; //hql语句
   int deleteNum = getSession().createQuery(hql).setInteger("id", ad_id).executeUpdate();
   return deleteNum;
  } catch (RuntimeException re) {
   log.error("delete failed", re);
   throw re;
  }
 }
posted on 2008-08-20 16:34 睡得惊动了党 阅读(1586) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航: