You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ibatis.apache.org by Clinton Begin <cl...@gmail.com> on 2004/12/07 06:55:14 UTC

RE: caching, doesn't

>>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