Hi Sanix,
1. For specifying the 2L-cache implementation you should use the property
hibernate.cache.region.factory_class.
hibernate.cache.provider_class is old and obsolete.
2. JBossCache is deprecated and should be replaced by is successor Infinispan
N.B.: I just did a small test (I use EHCache as 2ndLevel Cache) and to me
Code:
<property name="javax.persistence.sharedCache.mode" value="ALL"/>
works great.
These are the further setting I use:
Code:
<property name="hibernate.cache.region.factory_class" value="org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory"/>
<property name="hibernate.cache.use_structured_entries" value="true"/>
<property name="hibernate.cache.use_second_level_cache" value="true"/>
Quote:
I can open the same record multiple times ...
How do you do this?
If you use a user-defined-query-to do this, then you have to enable and use also the 2nd-level-
Query-cache.