You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by John Didion <Jo...@loudeye.com> on 2004/12/02 10:21:23 UTC
caching broken in 2.0.8?
In 2.0.4 (the last version I was able to use with any success), I could
do:
-- SQL MAPS --
<cacheModel id="cache" type="LRU">
<flushInterval minutes="30" />
<property name="size" value="1000" />
</cacheModel>
...some insert statement...
<select id="select" parameterClass="MyClass" resultClass="AnotherClass"
cacheModel="cache">
...some select statement...
</select>
-- JAVA --
MyClass obj = new MyClass();
...set properties...
client.update("insert", obj);
assertNotNull(client.queryForObject("foo", obj));
This no longer works in 2.0.8. However, when I disable caching (by
either removing the cacheModel attribute from the select element or
setting cacheModelsEnabled to false in the config file), it works fine.
Did something change or is this a bug?