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:
parent
8052ba19d5
commit
fa4e5c37b3
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue