Hi, I’m trying to use JPA second level cache on JBoss AS 7.1.3.Final and trying to:
When second level cache and selective caching is enabled through persistence.xml, @Cacheable annotation is ignored and the entities won’t get cached in L2 cache.
Here is a part of my persistence.xml
<mapping-file>META-INF/orm.xml</mapping-file> <shared-cache-mode>ENABLE_SELECTIVE</shared-cache-mode> ... <property name="hibernate.cache.use_second_level_cache" value="true" /> <property name="hibernate.cache.use_query_cache" value="true" /> <property name="hibernate.cache.use_minimal_puts" value="true" />
I also found :
Is this a bug?
Any idea?
Thanks.