I think this is more a JPA/Hibernate question. You need to explicitly tell Hibernate to
use the cached results using a query hint. I'd use a named query, though. You'd
do:
| @NamedQuery(
| name="findXXX",
| query="from xxx",
| hints={(a)QueryHint(name="org.hibernate.cacheable", value="true"),
| @QueryHint(name="org.hibernate.cacheRegion", value="com.xyz"}
| )
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4137563#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...