List of usage examples for org.hibernate.cache.internal DefaultCacheKeysFactory INSTANCE
DefaultCacheKeysFactory INSTANCE
To view the source code for org.hibernate.cache.internal DefaultCacheKeysFactory INSTANCE.
Click Source Link
From source file:org.infinispan.hibernate.cache.commons.InfinispanRegionFactory.java
License:LGPL
private CacheKeysFactory determineCacheKeysFactory(SessionFactoryOptions settings, Properties properties) { return settings.getServiceRegistry().getService(StrategySelector.class).resolveDefaultableStrategy( CacheKeysFactory.class, properties.get(AvailableSettings.CACHE_KEYS_FACTORY), DefaultCacheKeysFactory.INSTANCE); }
From source file:org.infinispan.hibernate.cache.v53.InfinispanRegionFactory.java
License:LGPL
private CacheKeysFactory determineCacheKeysFactory(SessionFactoryOptions settings, Map properties) { return settings.getServiceRegistry().getService(StrategySelector.class).resolveDefaultableStrategy( CacheKeysFactory.class, properties.get(AvailableSettings.CACHE_KEYS_FACTORY), DefaultCacheKeysFactory.INSTANCE); }
From source file:org.infinispan.test.hibernate.cache.CacheKeySerializationTest.java
License:LGPL
@Test @TestForIssue(jiraKey = "HHH-11202") public void testDefaultCacheKeySimpleId() throws Exception { testId(DefaultCacheKeysFactory.INSTANCE, WithSimpleId.class.getName(), 1L); }
From source file:org.infinispan.test.hibernate.cache.CacheKeySerializationTest.java
License:LGPL
@Test @TestForIssue(jiraKey = "HHH-11202") public void testDefaultCacheKeyEmbeddedId() throws Exception { testId(DefaultCacheKeysFactory.INSTANCE, WithEmbeddedId.class.getName(), new PK(1L)); }
From source file:org.redisson.hibernate.RedissonRegionFactory.java
License:Apache License
@Override protected void prepareForUse(SessionFactoryOptions settings, @SuppressWarnings("rawtypes") Map properties) throws CacheException { this.redisson = createRedissonClient(properties); StrategySelector selector = settings.getServiceRegistry().getService(StrategySelector.class); cacheKeysFactory = selector.resolveDefaultableStrategy(CacheKeysFactory.class, properties.get(Environment.CACHE_KEYS_FACTORY), DefaultCacheKeysFactory.INSTANCE); }