ibatis-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clinton Begin <clinton.be...@gmail.com>
Subject RE: caching, doesn't
Date Tue, 07 Dec 2004 05:55:14 GMT
>>Case in point: The following
>>query does NOT cache the results.

Hi Sean,

I can't recreate this behaviour.  We have unit tests confirming
caching works.  However, I'm wondering if there's a problem with the
HashMap that you're using as a paramter.  Maps are VERY particular
with regard to types and equality.  You have to be sure to remodel
your Map parameter EXACTLY to ensure that you'll get the same cache
result.

I generally suggest using JavaBeans wherever possible for parameters
and results.  Although iBATIS supports Maps and XML, it does little to
improve upon their type safety.

Cheers,
Clinton

Mime
View raw message