/* * (non-Javadoc) * * @see cn.tinder.fuego.dao.CheckPlanDao#create(cn.tinder.fuego.domain.po.CheckPlan ) */ @Override public void create(CheckPlan plan) { // TODO Auto-generated method stub log.debug("[DAO] Create a CheckPlan:" + plan.toString()); try { HibernateUtil.add(plan); } catch (RuntimeException re) { throw re; } finally { HibernateUtil.closeSession(); } log.debug("[DAO] Success! -Create a CheckPlan:" + plan.toString()); }
/* * (non-Javadoc) * * @see cn.tinder.fuego.dao.AssetsQuotaDao#create(cn.tinder.fuego.domain.po. AssetsQuota) */ @Override public void create(AssetsQuota quota) { // TODO Auto-generated method stub log.debug("[DAO] Create a AssetsQuota:" + quota.toString()); try { HibernateUtil.add(quota); } catch (RuntimeException re) { throw re; } finally { HibernateUtil.closeSession(); } log.debug("[DAO] Success! -Create a AssetsQuota:" + quota.toString()); }