Thank for your help.
I am in a spring context.
So here is my dataAccessObject class :
Code:
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
public class HibernateDataAccessObject extends HibernateDaoSupport;
And here is the evict method of this class :
Code:
public void evict(Object o) throws CoreException {
try {
getHibernateTemplate().evict(o);
} catch (DataAccessException e) {
e.printStackTrace();
CoreException ce = new CoreException();
ce.setErrorCode(IDAOExceptionConstants.ERROR_CODE_GENERAL_FAILURE);
ce.initCause(e);
ce.setStackTrace(e.getStackTrace());
throw ce;
}
}
When I do it, no exception appear...