Fix RefreshTest
This commit is contained in:
parent
d6a3fdb771
commit
3637bd342d
|
@ -1238,6 +1238,11 @@ public final class SessionImpl
|
|||
|
||||
private void fireRefresh(RefreshEvent event) {
|
||||
try {
|
||||
if ( getSessionFactory().getSessionFactoryOptions().isJpaBootstrap() ) {
|
||||
if ( !contains( event.getObject() ) ) {
|
||||
throw new IllegalArgumentException( "Entity not managed" );
|
||||
}
|
||||
}
|
||||
checkOpen();
|
||||
checkTransactionSynchStatus();
|
||||
for ( RefreshEventListener listener : listeners( EventType.REFRESH ) ) {
|
||||
|
|
Loading…
Reference in New Issue