ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Larry Meadors" <lmead...@apache.org>
Subject Re: Cached list from queryForList() ...
Date Mon, 06 Nov 2006 15:29:55 GMT
Yes: Make sure that the cache is not marked as read-only.


On 11/6/06, Eric Tan <erictankok@yahoo.com.sg> wrote:
> Hi,
> I was testing Spring Acegi Security's AfterInvocationProviderManager which
> deals with domain object instance security (ACL).
> With ibatis caching enabled and queryForList(), I realised that returned
> result list was the actual cached list.
> With AfterInvocationProviderManager performing object filtering of the
> returned list, unauthorised objects in the returned list were removed. Which
> means the objects were actually removed from the cached list. Subsequent
> invocations of the same queryForList() would return a smaller list.
> Is there any way to configure ibatis to return a copy of the cached list
> instead of the actual cached list?
> My current workaround is to return a shallow copy of the cached list.
> Thanks,
> Eric
>  ________________________________
>  What will the world find in 2020?
>  Leave a part of your 2006 in the Yahoo! Time Capsule. Contribute now!

View raw message