HHH-14293 Reset the ReflectionManager state after SessionFactory is initialized
This commit is contained in:
parent
f3396805d4
commit
6b58d54057
|
@ -392,6 +392,10 @@ public class SessionFactoryImpl implements SessionFactoryImplementor {
|
|||
this,
|
||||
serviceRegistry.getService( JndiService.class )
|
||||
);
|
||||
|
||||
//As last operation, delete all caches from ReflectionManager
|
||||
//(not modelled as a listener as we want this to be last)
|
||||
metadata.getMetadataBuildingOptions().getReflectionManager().reset();
|
||||
}
|
||||
catch (Exception e) {
|
||||
for ( Integrator integrator : serviceRegistry.getService( IntegratorService.class ).getIntegrators() ) {
|
||||
|
|
Loading…
Reference in New Issue