|
18 | 18 | import org.hibernate.HibernateException; |
19 | 19 | import org.hibernate.Interceptor; |
20 | 20 | import org.hibernate.LockMode; |
21 | | -import org.hibernate.SessionEventListener; |
22 | 21 | import org.hibernate.SessionException; |
23 | 22 | import org.hibernate.SharedStatelessSessionBuilder; |
24 | 23 | import org.hibernate.Transaction; |
@@ -187,7 +186,9 @@ public AbstractSharedSessionContract(SessionFactoryImpl factory, SessionCreation |
187 | 186 |
|
188 | 187 | factoryOptions = factory.getSessionFactoryOptions(); |
189 | 188 | jdbcServices = factory.getJdbcServices(); |
190 | | - cacheTransactionSynchronization = factory.getCache().getRegionFactory().createTransactionContext( this ); |
| 189 | + cacheTransactionSynchronization = |
| 190 | + factory.getCache().getRegionFactory() |
| 191 | + .createTransactionContext( this ); |
191 | 192 |
|
192 | 193 | tenantIdentifier = getTenantId( factoryOptions, options ); |
193 | 194 | readOnly = options.isReadOnly(); |
@@ -1719,13 +1720,15 @@ private void readObject(ObjectInputStream ois) throws IOException, ClassNotFound |
1719 | 1720 | jdbcServices = factory.getJdbcServices(); |
1720 | 1721 |
|
1721 | 1722 | //TODO: this isn't quite right, see createSessionEventsManager() |
1722 | | - final SessionEventListener[] baseline = factoryOptions.buildSessionEventListeners(); |
| 1723 | + final var baseline = factoryOptions.buildSessionEventListeners(); |
1723 | 1724 | sessionEventsManager = new SessionEventListenerManagerImpl( baseline ); |
1724 | 1725 |
|
1725 | 1726 | jdbcSessionContext = createJdbcSessionContext( (StatementInspector) ois.readObject() ); |
1726 | 1727 | jdbcCoordinator = JdbcCoordinatorImpl.deserialize( ois, this ); |
1727 | 1728 |
|
1728 | | - cacheTransactionSynchronization = factory.getCache().getRegionFactory().createTransactionContext( this ); |
| 1729 | + cacheTransactionSynchronization = |
| 1730 | + factory.getCache().getRegionFactory() |
| 1731 | + .createTransactionContext( this ); |
1729 | 1732 | transactionCoordinator = |
1730 | 1733 | factory.transactionCoordinatorBuilder.buildTransactionCoordinator( jdbcCoordinator, this ); |
1731 | 1734 |
|
|
0 commit comments