cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hans Pikkemaat <h.pikkem...@tsi-solutions.nl>
Subject Re: refreshing prefetched objects.
Date Tue, 07 Sep 2010 14:23:36 GMT
  Indeed very strange.

I'm trying to reproduce now using a simple table structure but here
it works fine.

If I find something I'll let you know.

Hans

On 9/7/10 4:06 PM, Andrus Adamchik wrote:
> Very strange. Prefetching always refreshes related objects.
>
> Andrus
>
> On Sep 7, 2010, at 7:52 AM, Hans Pikkemaat wrote:
>
>> Hi,
>>
>> I'm running a SelectQuery where I'm using a joint prefetch.
>>
>>     query.addPrefetch(...).setSemantics(PrefetchTreeNode.JOINT_PREFETCH_SEMANTICS);
>>
>> I turned caching off.
>>
>>     query.setCachePolicy(QueryMetadata.NO_CACHE);
>>
>> If I now run the query twice then the prefetched objects are not refreshed.
>> I can see in the logs that the complete query is executed.
>>
>> The main table IS refreshed but the related ones not.
>>
>> Is there a way to tell cayenne to also refresh the related objects?
>>
>> tx
>>
>> Hans
>>


Mime
View raw message