606,6 → 606,36 |
* using the current value of the identifier property if the assigned |
* generator is used.) |
*/ |
public void update(CLAZZ obj) |
{ |
try |
{ |
getCurrentSession().update(obj); |
} |
catch (HibernateException e) |
{ |
throw new DaoException(e); |
} |
} |
|
public CLAZZ merge(CLAZZ obj) |
{ |
try |
{ |
return (CLAZZ) getCurrentSession().merge(obj); |
} |
catch (HibernateException e) |
{ |
throw new DaoException(e); |
} |
} |
|
/** |
* Used by the base DAO classes but here for your modification Persist the |
* given transient instance, first assigning a generated identifier. (Or |
* using the current value of the identifier property if the assigned |
* generator is used.) |
*/ |
public final void saveOrUpdate(CLAZZ obj) |
{ |
try |