HHH-9727 - Slight redesign to bootstrapping APIs to allow for OGM bootstrapping
This commit is contained in:
parent
e8af41637f
commit
d2c50f16f2
File diff suppressed because it is too large
Load Diff
|
@ -27,6 +27,7 @@ import java.util.HashMap;
|
|||
import java.util.Map;
|
||||
import java.util.Properties;
|
||||
|
||||
import org.hibernate.boot.internal.SessionFactoryBuilderImpl;
|
||||
import org.hibernate.boot.internal.SessionFactoryOptionsImpl;
|
||||
import org.hibernate.boot.registry.StandardServiceRegistry;
|
||||
import org.hibernate.boot.registry.StandardServiceRegistryBuilder;
|
||||
|
@ -103,7 +104,11 @@ public class CacheTestUtil {
|
|||
regionFactory = (InfinispanRegionFactory) clazz.newInstance();
|
||||
}
|
||||
|
||||
final SessionFactoryOptionsImpl sessionFactoryOptions = new SessionFactoryOptionsImpl( (StandardServiceRegistry) serviceRegistry );
|
||||
final SessionFactoryOptionsImpl sessionFactoryOptions = new SessionFactoryOptionsImpl(
|
||||
new SessionFactoryBuilderImpl.SessionFactoryOptionsStateStandardImpl(
|
||||
(StandardServiceRegistry) serviceRegistry
|
||||
)
|
||||
);
|
||||
final Settings settings = new Settings( sessionFactoryOptions );
|
||||
final Properties properties = toProperties( cfgService.getSettings() );
|
||||
|
||||
|
|
Loading…
Reference in New Issue