ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nathan Maves <Nathan.Ma...@Sun.COM>
Subject Re: cache question
Date Sun, 13 Feb 2005 19:46:24 GMT
Yes I am aware :)

Would you suggest using the same cache for two queries with different 
parameters but the same result objects?

i.e.

getStudentsByAge and a getStudentsByAgeAndGrade

These maps would both return a List of Student objects

Nathan

On Feb 11, 2005, at 4:32 PM, Clinton Begin wrote:

> yes.  But please be aware of a critical bug currently affecting
> caching by String keys (see JIRA).
>
> It will be fixed as soon as we have SVN available.  !!!
>
> Cheers,
> Clinton
>
>
> On Fri, 11 Feb 2005 15:57:22 -0700, Nathan Maves 
> <Nathan.Maves@sun.com> wrote:
>> give the select below
>>
>>         <select id="getlogById" parameterClass="string"
>> resultMap="logResultMap" cacheModel="logCache">
>>          select
>>              *
>>          from
>>              GST_log
>>          where
>>              id = #value#
>>      </select>
>>
>> if you call this select with both getQueryForObject and 
>> getQueryForList
>> with the caching work correctly?
>>
>> Nathan
>>
>>


Mime
View raw message