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

View File

@ -427,8 +427,13 @@ public void clear() {
} }
public void detach(Object entity) { public void detach(Object entity) {
try {
getSession().evict( entity ); getSession().evict( entity );
} }
catch ( HibernateException he ) {
throwPersistenceException( he );
}
}
public FlushModeType getFlushMode() { public FlushModeType getFlushMode() {
FlushMode mode = getSession().getFlushMode(); FlushMode mode = getSession().getFlushMode();