title: HazelCast Hibernate52 - Throws Unable to resolve name com.hazelcast.hibernate.HazelcastCacheRegionFactory
body: <p>I'm trying to create a second level cache using hazelcast-hibernate52 (which supports hibernate 5.2.12.Final, I guess) when I run it throws the following exception</p>
  
  <pre><code>Caused by: org.hibernate.boot.registry.selector.spi.StrategySelectionException: Unable to resolve name [com.hazelcast.hibernate.HazelcastCacheRegionFactory] as strategy [org.hibernate.cache.spi.RegionFactory]
  at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.selectStrategyImplementor(StrategySelectorImpl.java:126)
  at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.resolveStrategy(StrategySelectorImpl.java:194)
  at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.resolveStrategy(StrategySelectorImpl.java:161)
  at org.hibernate.cache.internal.RegionFactoryInitiator.initiateService(RegionFactoryInitiator.java:67)
  at org.hibernate.cache.internal.RegionFactoryInitiator.initiateService(RegionFactoryInitiator.java:28)
  at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:88)
  at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:259)
  ... 47 more
  </code></pre>
  
  <p>Below are my Spring hazel configurations</p>
  
  <pre><code> &lt;hz:hazelcast id="instance"&gt;
      &lt;hz:config&gt;
      &lt;hz:instance-name&gt;hazelcast&lt;/hz:instance-name&gt;
     &lt;!--  &lt;hz:spring-aware /&gt; --&gt;
          &lt;hz:group name="dev" password="dev-password"/&gt;
          &lt;hz:management-center enabled="true" url="http://localhost:9008/hazelcast-mancenter"/&gt; 
          &lt;hz:properties&gt;
              &lt;hz:property name="hazelcast.merge.first.run.delay.seconds"&gt;5&lt;/hz:property&gt;
              &lt;hz:property name="hazelcast.merge.next.run.delay.seconds"&gt;5&lt;/hz:property&gt;
          &lt;/hz:properties&gt;
          &lt;hz:network port="5701" port-auto-increment="false" port-count="1"&gt;
              &lt;hz:join&gt;
              &lt;!-- Enable for auto detection --&gt; 
                  &lt;hz:multicast enabled="true" /&gt;
                  &lt;hz:tcp-ip enabled="false"&gt;
                   &lt;hz:members&gt;120.0.0.1&lt;/hz:members&gt;
                  &lt;/hz:tcp-ip&gt;
              &lt;/hz:join&gt;
              &lt;hz:interfaces&gt;
              &lt;hz:interface&gt;120.0.0.*&lt;/hz:interface&gt;
              &lt;/hz:interfaces&gt;
          &lt;/hz:network&gt;
  </code></pre>
  
  <p>These are my spring hibernate configurations</p>
  
  <pre><code>&lt;bean id="tpSessionFactory"
      class="org.springframework.orm.hibernate5.LocalSessionFactoryBean"&gt;
      &lt;property name="dataSource" ref="tpDataSource"&gt;&lt;/property&gt;
      &lt;property name="hibernateProperties"&gt;
          &lt;props&gt;
              &lt;!-- &lt;prop key="hibernate.dialect"&gt;${db.dialect}&lt;/prop&gt; --&gt;
              &lt;prop key="hibernate.show_sql"&gt;${db.show_sql}&lt;/prop&gt;
              &lt;prop key="hibernate.hbm2ddl.auto"&gt;${db.hbm2ddl.auto}&lt;/prop&gt;
              &lt;prop key="hibernate.cache.use_second_level_cache"&gt;true&lt;/prop&gt;
  &lt;prop key="hibernate.cache.region.factory_class"&gt;com.hazelcast.hibernate.HazelcastCacheRegionFactory&lt;/prop&gt;
  &lt;prop key="hibernate.cache.hazelcast.instance_name"&gt;hazelcast&lt;/prop&gt;
          &lt;/props&gt;
  </code></pre>
  
  <p>and the dependencies which are used are:</p>
  
  <pre><code>&lt;dependency&gt;
          &lt;groupId&gt;com.hazelcast&lt;/groupId&gt;
          &lt;artifactId&gt;hazelcast-all&lt;/artifactId&gt;
          &lt;version&gt;3.10.4&lt;/version&gt;
          &lt;scope&gt;compile&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.hazelcast&lt;/groupId&gt;
          &lt;artifactId&gt;hazelcast-spring&lt;/artifactId&gt;
          &lt;version&gt;3.10.4&lt;/version&gt;
          &lt;scope&gt;compile&lt;/scope&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.hazelcast&lt;/groupId&gt;
          &lt;artifactId&gt;hazelcast-hibernate52&lt;/artifactId&gt;
          &lt;version&gt;1.2&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>Is there anything which i'm missing in here?</p>