HHH-3482 formatting

This commit is contained in:
Brett Meyer 2014-02-10 17:10:00 -05:00
parent 600369413d
commit d60fc99dd4
2 changed files with 14 additions and 4 deletions

View File

@ -77,8 +77,6 @@ import org.hibernate.cache.spi.access.CollectionRegionAccessStrategy;
import org.hibernate.cache.spi.access.EntityRegionAccessStrategy;
import org.hibernate.cache.spi.access.NaturalIdRegionAccessStrategy;
import org.hibernate.cache.spi.access.RegionAccessStrategy;
import org.hibernate.cfg.AvailableSettings;
import org.hibernate.cfg.Configuration;
import org.hibernate.cfg.Environment;
import org.hibernate.cfg.Settings;
import org.hibernate.cfg.SettingsFactory;
@ -1718,7 +1716,8 @@ public final class SessionFactoryImpl
@Override
public StatelessSession openStatelessSession() {
return new StatelessSessionImpl( connection, tenantIdentifier, sessionFactory, sessionFactory.settings.getRegionFactory().nextTimestamp() );
return new StatelessSessionImpl( connection, tenantIdentifier, sessionFactory,
sessionFactory.settings.getRegionFactory().nextTimestamp() );
}
@Override

View File

@ -84,8 +84,19 @@ public class StatelessSessionImpl extends AbstractSessionImpl implements Statele
private TransactionCoordinator transactionCoordinator;
private PersistenceContext temporaryPersistenceContext = new StatefulPersistenceContext( this );
private long timestamp;
StatelessSessionImpl(
Connection connection,
String tenantIdentifier,
SessionFactoryImpl factory) {
this( connection, tenantIdentifier, factory, factory.getSettings().getRegionFactory().nextTimestamp() );
}
StatelessSessionImpl(Connection connection, String tenantIdentifier, SessionFactoryImpl factory, long timestamp) {
StatelessSessionImpl(
Connection connection,
String tenantIdentifier,
SessionFactoryImpl factory,
long timestamp) {
super( factory, tenantIdentifier );
this.transactionCoordinator = new TransactionCoordinatorImpl( connection, this );
this.timestamp = timestamp;