Hi All,
I am using ibatis.net DataMapper (recent build of 1.6.1 source) and have
many mapping files where I use LRU cacheModel with no issues.
There is one, however, where the object is not flushed when the record
is deleted from the Database. If I try to load the object after is
deleted I get back the old record (which should have been flushed). I
have tried very hard to find any fault in the mapping but have not
succeeded so far.
An extract from my mapping:
---------------------------------------------
<cacheModel id="SpecificVehicleCache" implementation="LRU"
readOnly="false" serialize="true">
<flushInterval hours="1" />
<flushOnExecute statement="updateSpecificVehicle" />
<flushOnExecute statement="insertSpecificVehicle" />
<flushOnExecute statement="deleteSpecificVehicle" />
</cacheModel>
....
<procedure id="getSpecificVehicleById" resultClass="SpecificVehicle"
resultMap="SpecificVehicle"
parameterMap="IdParameterMap" cacheModel="SpecificVehicleCache" >
<![CDATA[IRM_spSpecificVehicleGetById]]>
</procedure>
<procedure id="deleteSpecificVehicle"
parameterMap="SpecificVehicleIdAndCallerParameterMap">
<![CDATA[IRM_spSpecificVehicleDelete]]>
</procedure>
---------------------------------------------
Any ideas why this might be happening?
Thanks in advance,
Lazaro Pi