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#4194244

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4194244
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to