Hello:
I have currently configured Hibernate to use OSCache, with the following setttings in persistence.xml:
<property name="hibernate.ejb.classcache.com.test.TestClass" value="read-write"/>
<property name="hibernate.cache.provider_class" value="org.hibernate.cache.OSCacheProvider"/>
<property name="hibernate.cache.use_second_level_cache" value="true"/>
Howver, I noticed that the JDBC calls are still being made to the database after the TestClass is read into memory. Is there additional configuration that is needed in order to keep the JDBC calls from being made? I am using the latest release versions of entity manager, annotations, etc, and OSCache 2.1.
Thanks in advance for any assistance.
|