refreshing prefetched objects.

From: Hans Pikkemaat (h.pikkemaa..si-solutions.nl)
Date: Tue Sep 07 2010 - 11:52:36 UTC

  • Next message: Michael Gentry: "Re: hot servlet deployment"

      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



    This archive was generated by hypermail 2.0.0 : Tue Sep 07 2010 - 11:53:17 UTC