cleaning select cache

2009-12-08 Thread -dk-
Hi All, I confused when couldn't find any control over the 1st-level cache which is always On for select mapper. What I found (thanks to open source) that easy way to do clean the cache is to call session.commit() (or rollback). I use scenario when session stays open for some time and I need to mo

null pointer exception when setting @Options(useCache = false)

2009-12-03 Thread -dk-
Hi All. I'm using iBatis 3 beta 5 for Java 6 with ojdbc6.jar (Oracle 11g). I got working simple mapper like this: public interface RateMapper { @Select("select rate from rate_table where rate_id = #{id}") double getRate(int id); } Then I tried to disable cache for this statement: