Regardless of the cache policy setting, you will need to do
"query.setRefreshingRefetchedObjects(true)" to ensure that when the
fetch is actually performed, the objects are refreshed. If you used
to set this flag to false prior to M11, you'll need to change it.
Andrus
On Feb 23, 2006, at 10:36 AM, <emre.yilma..r.net>
<emre.yilma..r.net> wrote:
> Hi,
>
> I use the cayenne-1.2M11 version. When I set the prefetches with
> QueryMetadata.
> LOCAL_CACHE_REFRESH, prefetched data refreshed correctly but local
> data(not
> prefetched,attiribute on object entity class,maked query) is
> refreshed for
> first update and not refreshed for other updates.
> I don't find answer of this problem. Is there any way to make
> prefetched query
> with local cache refresh(Refreshing all objects in the context, not
> only
> prefetched, for each time of calling the query).
>
> Thanks,
>
>
This archive was generated by hypermail 2.0.0 : Thu Feb 23 2006 - 10:51:39 EST