ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Torsten Michelmann" <torsten.michelm...@gmx.de>
Subject Re: Re: Unit test problem with sql cache
Date Fri, 30 Jun 2006 13:50:33 GMT
Not sure if it works, but you might try to define a variable named eg. isCacheEnabled in your
properties file (access it via <properties resource="your.properties"/>) and then you
can use 
cacheModelsEnabled=${isCacheEnabled}



-------- Original-Nachricht --------
Datum: Fri, 30 Jun 2006 21:23:56 +0800
Von: Anthony Hong <anthony.bin.hong@gmail.com>
An: user-java@ibatis.apache.org
Betreff: Re: Unit test problem with sql cache

> I saw sqlMapconfig has settings with cacheModelsEnabled
> How to change it dynamicly. Or Can I seperate sql map settings and sql
> map resource into two file and merge them in using?
> 
> On 6/30/06, Anthony Hong <anthony.bin.hong@gmail.com> wrote:
> > I use db unit test to do intergration test with sql.
> > One of me selection with cache in sqlmap.
> > Backend data are insert via db script automatic so there is no chance
> > to trigger ibatis to update selection cache.
> > How to solve this problem? I want to disable cache in unit testint
> > mode. And enable it during web application page.
> >
> > --
> >
> > Anthony Hong
> >
> >
> > --
> >
> > Anthony Hong
> >
> 
> 
> -- 
> 
> Anthony Hong

-- 
Gruß
Torsten Michelmann

"Feel free" – 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail

Mime
View raw message