On May 28, 2010, at 9:20 AM, Gary Jarrel wrote:

I would expect that the the second query q2 would not execute any SQL
however the QueryLogger logs the second select statement.

The second query has no cache group or cache strategy in your example, so it is not using caching.

Also the assert on the query cache size fails the it appears the size
is zero rather than 1 as I would have expected.

is domain.getQueryCache().size() also returning zero?

Andrus

Reply via email to