[jboss-user] [JBoss Cache: Core Edition] - Re: JPA/Hibernate JBC usage

zeravlai do-not-reply at jboss.com
Tue Mar 31 23:48:00 EDT 2009


Thanks Brian,

I'm testing with these two properties in the persistence.xml file.
Even if use_query_cache is set to true, you need to set @QueryHint to see query results in the cache, though, yes, entities are cached.

Anyway, the key point I was missing is the PK. Entities are cached and will also be retrieved from the cache when searched by PK.

However, still confusing the behaviour of the statistics, since cache hits is always zero and so it is Hit/Miss ratio. Cache misses seems to be working fine.


View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4222489#4222489

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4222489



More information about the jboss-user mailing list