Minor fix on detach()

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@17006 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Emmanuel Bernard 2009-07-06 16:22:17 +00:00
parent 8052ba19d5
commit fa4e5c37b3
1 changed files with 6 additions and 1 deletions

View File

@ -427,7 +427,12 @@ public abstract class AbstractEntityManagerImpl implements HibernateEntityManage
}
public void detach(Object entity) {
getSession().evict( entity );
try {
getSession().evict( entity );
}
catch ( HibernateException he ) {
throwPersistenceException( he );
}
}
public FlushModeType getFlushMode() {