Subversion Repositories bacoAlunos

Compare Revisions

Ignore whitespace Rev 1312 → Rev 1315

/branches/v3/impl/src/java/jomm/dao/impl/AbstractDao.java
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