HHH-6795 unsupported Boolean type null value on Sybase causes hangs forever when doing bind parameter

This commit is contained in:
Strong Liu 2011-11-02 22:30:46 +08:00
parent 16f0fa5373
commit 944ae2c488
1 changed files with 8 additions and 8 deletions

View File

@ -290,7 +290,7 @@ public final class SessionFactoryImpl
final IntegratorObserver integratorObserver = new IntegratorObserver(); final IntegratorObserver integratorObserver = new IntegratorObserver();
this.observer.addObserver( integratorObserver ); this.observer.addObserver( integratorObserver );
for ( Integrator integrator : this.serviceRegistry.getService( IntegratorService.class ).getIntegrators() ) { for ( Integrator integrator : serviceRegistry.getService( IntegratorService.class ).getIntegrators() ) {
integrator.integrate( cfg, this, this.serviceRegistry ); integrator.integrate( cfg, this, this.serviceRegistry );
integratorObserver.integrators.add( integrator ); integratorObserver.integrators.add( integrator );
} }
@ -342,7 +342,7 @@ public final class SessionFactoryImpl
allCacheRegions.put( cacheRegionName, entityRegion ); allCacheRegions.put( cacheRegionName, entityRegion );
} }
} }
EntityPersister cp = this.serviceRegistry.getService( PersisterFactory.class ).createEntityPersister( EntityPersister cp = serviceRegistry.getService( PersisterFactory.class ).createEntityPersister(
model, model,
accessStrategy, accessStrategy,
this, this,
@ -371,7 +371,7 @@ public final class SessionFactoryImpl
entityAccessStrategies.put( cacheRegionName, accessStrategy ); entityAccessStrategies.put( cacheRegionName, accessStrategy );
allCacheRegions.put( cacheRegionName, collectionRegion ); allCacheRegions.put( cacheRegionName, collectionRegion );
} }
CollectionPersister persister = this.serviceRegistry.getService( PersisterFactory.class ).createCollectionPersister( CollectionPersister persister = serviceRegistry.getService( PersisterFactory.class ).createCollectionPersister(
cfg, cfg,
model, model,
accessStrategy, accessStrategy,
@ -436,21 +436,21 @@ public final class SessionFactoryImpl
catch (Exception e) { catch (Exception e) {
throw new AssertionFailure("Could not generate UUID"); throw new AssertionFailure("Could not generate UUID");
} }
SessionFactoryRegistry.INSTANCE.addSessionFactory( uuid, name, this, this.serviceRegistry.getService( JndiService.class ) ); SessionFactoryRegistry.INSTANCE.addSessionFactory( uuid, name, this, serviceRegistry.getService( JndiService.class ) );
LOG.debugf( "Instantiated session factory" ); LOG.debugf( "Instantiated session factory" );
if ( settings.isAutoCreateSchema() ) { if ( settings.isAutoCreateSchema() ) {
new SchemaExport( this.serviceRegistry, cfg ).create( false, true ); new SchemaExport( serviceRegistry, cfg ).create( false, true );
} }
if ( settings.isAutoUpdateSchema() ) { if ( settings.isAutoUpdateSchema() ) {
new SchemaUpdate( this.serviceRegistry, cfg ).execute( false, true ); new SchemaUpdate( serviceRegistry, cfg ).execute( false, true );
} }
if ( settings.isAutoValidateSchema() ) { if ( settings.isAutoValidateSchema() ) {
new SchemaValidator( this.serviceRegistry, cfg ).validate(); new SchemaValidator( serviceRegistry, cfg ).validate();
} }
if ( settings.isAutoDropSchema() ) { if ( settings.isAutoDropSchema() ) {
schemaExport = new SchemaExport( this.serviceRegistry, cfg ); schemaExport = new SchemaExport( serviceRegistry, cfg );
} }
currentSessionContext = buildCurrentSessionContext(); currentSessionContext = buildCurrentSessionContext();