HHH-3482 formatting

This commit is contained in:
Brett Meyer 2014-02-10 17:10:00 -05:00
parent 5b61a3b46e
commit 40a1534163
2 changed files with 15 additions and 5 deletions

View File

@ -40,6 +40,7 @@ import java.util.Map;
import java.util.Properties;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import javax.naming.Reference;
import javax.naming.StringRefAddr;
@ -76,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.annotations.NamedProcedureCallDefinition;
@ -143,7 +142,6 @@ import org.hibernate.tuple.entity.EntityTuplizer;
import org.hibernate.type.AssociationType;
import org.hibernate.type.Type;
import org.hibernate.type.TypeResolver;
import org.jboss.logging.Logger;
@ -1763,7 +1761,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

@ -85,8 +85,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;