HHH-14293 Reset the ReflectionManager state after SessionFactory is initialized

This commit is contained in:
Sanne Grinovero 2020-10-22 22:07:56 +01:00
parent f3396805d4
commit 6b58d54057
1 changed files with 4 additions and 0 deletions

View File

@ -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() ) {