fix Session#refresh() exception
This commit is contained in:
parent
d2ac092992
commit
33c4f3b5b5
|
@ -1229,21 +1229,38 @@ public final class SessionImpl
|
|||
}
|
||||
|
||||
private void fireRefresh(RefreshEvent event) {
|
||||
checkOpen();
|
||||
checkTransactionSynchStatus();
|
||||
for ( RefreshEventListener listener : listeners( EventType.REFRESH ) ) {
|
||||
listener.onRefresh( event );
|
||||
try {
|
||||
checkOpen();
|
||||
checkTransactionSynchStatus();
|
||||
for ( RefreshEventListener listener : listeners( EventType.REFRESH ) ) {
|
||||
listener.onRefresh( event );
|
||||
}
|
||||
}
|
||||
catch (RuntimeException e) {
|
||||
//including HibernateException
|
||||
throw convert( e );
|
||||
}
|
||||
finally {
|
||||
delayedAfterCompletion();
|
||||
}
|
||||
delayedAfterCompletion();
|
||||
}
|
||||
|
||||
private void fireRefresh(Map refreshedAlready, RefreshEvent event) {
|
||||
checkOpen();
|
||||
checkTransactionSynchStatus();
|
||||
for ( RefreshEventListener listener : listeners( EventType.REFRESH ) ) {
|
||||
listener.onRefresh( event, refreshedAlready );
|
||||
try {
|
||||
checkOpen();
|
||||
checkTransactionSynchStatus();
|
||||
for ( RefreshEventListener listener : listeners( EventType.REFRESH ) ) {
|
||||
listener.onRefresh( event, refreshedAlready );
|
||||
}
|
||||
delayedAfterCompletion();
|
||||
}
|
||||
catch (RuntimeException e) {
|
||||
//including HibernateException
|
||||
throw convert( e );
|
||||
}
|
||||
finally {
|
||||
delayedAfterCompletion();
|
||||
}
|
||||
delayedAfterCompletion();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue