openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rpalache <ravi.palache...@oracle.com>
Subject Disabling QueryCaching at runtime does not work
Date Mon, 30 Mar 2009 17:42:19 GMT

An application has a configuration that allows query caching, but is making runtime calls
to inform a fetch plan to disable query caching.

The bug is that this dynamic no-caching request is being ignored by the query cache executor,
which then caches the query regardless.

Tried to disable query cache using
OpenJPAEntityManager.getFetchPlan().setQueryResultCache(false);

and also

query.getFetchPlan().setQueryResultCacheEnabled(false); 

None of the above worked.

Please donwload the test case  from:
openJPATestcase.zip 

To replicate the problem:

1) Modify build.xml to reflect your environment. ( e.g: patch where the libraries for openJPA
exist )
2) "ant"
3) "ant test"

I tried it on openjpa 2.0.0

Regards,
Ravi.
-- 
View this message in context: http://n2.nabble.com/Disabling-QueryCaching-at-runtime-does-not-work-tp2558659p2558659.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.


Mime
View raw message