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

Reply via email to