[Java programming language only]

Migrating to Hibernate Version 4.0

WebSphere® eXtreme Scale Version 8.5 includes level 2 cache plug-ins for the Hibernate Version 3.0 Java™ Persistence API (JPA) provider. If you want to migrate to Hibernate Version 4.0, then you must change a L2 cache property.

Before you begin

Stop any servers that run applications with the Hibernate Version 3.0 plug-in or in a WebSphere Application Server environment.

About this task

In order to migrate to Hibernate Version 4.0, you must change the provider_class property to region.factory_class in the persistence.xml file.

Procedure

  1. Open the persistence.xml file, and locate the following property:
    <property name="hibernate.cache.provider_class"
    	value="com.ibm.com.websphere.objectgrid.hibernate.cache.ObjectGridHibernateCacheProvider"/>
  2. Update the property to the following:
    <property name="hibernate.cache.region.factory_class"
    	value="com.ibm.websphere.objectgrid.hibernate.cache.WXSRegionFactory"/>