I found one the following web site:
http://www.seamframework.org/Community/HowToDoTheJbossCache
that the query must be configure to be cached programatically. According to my testing, it
must be done in addition to the configuration in persistence.xml with
| <property name="hibernate.cache.use_query_cache"
value="true"/>
|
| Query accountQuery = em.createQuery("from Account a where a < 50");
| accountQuery.setHint("org.hibernate.cacheable", true);
| List<Account> accounts = accountQuery.getResultList();
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4194244#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...