ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Carré" <guillaume.ca...@gmail.com>
Subject Programmatic sqlMapClient configuration
Date Fri, 03 Nov 2006 13:37:24 GMT
Hi,

I'd like to enable/disable the cache model on my sqlMapClient
programmatically (not via the sqlMapConfig file), but I can't find a
way to do so.

I tried the following:

ExtendedSqlMapClient extendedSqlMapClient = (ExtendedSqlMapClient) sqlMapClient;
extendedSqlMapClient.getDelegate().setCacheModelsEnabled(false);

(with no cacheModelsEnabled property in the sqlMapConfig file, by
default it's on)

but the caches are still on...

Any idea? Thanks.
-- 
Guillaume Carré

Mime
View raw message