ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "liangfei" <liangfei0...@gmail.com>
Subject Variable cache key.
Date Fri, 19 Jun 2009 07:39:35 GMT
Example:

 

<select id="getXxx" parameterClass="long" resultClass="Xxx"
cacheModel="XxxCacheModel" cacheKey="#id#">

    select * from xxx where id = #id#

</select>

 

<delete id="deleteXxx" parameterClass="long" flushCacheModel="XxxCacheModel"
flushCacheKey="#id#">

    delete from xxx where id = #id#

</delete>

 


Mime
View raw message