mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-10 05:04:52 +00:00
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,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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user