[jboss-user] [JBoss Cache: Core Edition] - Re: I don't Think I am doing this Correct
genman
do-not-reply at jboss.com
Tue Mar 18 15:06:04 EDT 2008
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={@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#4137563
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4137563
More information about the jboss-user
mailing list