cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Jarrel <>
Subject Some more on 3.1 Conversion
Date Sat, 10 Sep 2011 04:06:04 GMT
Hi All,

Still working with the new features and finding some really cool
stuff, but am running into a few problems here and there, probably
cause am used to the old ways:

I've got the following initialization code:

Module extensions = new Module() {
    public void configure(Binder binder) {

serverRuntime = new ServerRuntime("cayenne-cdao.xml", extensions);
DataDomain domain = serverRuntime.getDataDomain();
DataNode node = domain.getNode("cdaoNode");

QueryCache cache = ((DataContext)serverRuntime.getContext()).getQueryCache();
int size = cache.size();

Running through a debugger I am finding that the cache object is an
instance of org.apache.cayenne.cache.QueryCacheLazyInitializationProxy
and it's provider is org.apache.cayenne.cache.MapQueryCacheProvider.

Shouldn't the provider in this instance be OSQueryCacheProvider?

Thank you


View raw message