Synchronization after SQLTemplate

From: Gili (cowwo..bs.darktech.org)
Date: Sun Sep 04 2005 - 16:48:44 EDT

  • Next message: Gili: "Question about object graph"

    Hi,

            http://www.objectstyle.org/cayenne/userguide/fetch/sqltemplate.html
    mentions that ObjectStore might be inconsistent after a SQLTemplate, but
    what are we supposed to do then? In Hibernate one would invoke
    session.flush() which forces the synchronization of all cached objects
    with the DB. Does Cayenne have an equivilent method?

            I want to be able to bulk-delete objects using SQLTemplate (as opposed
    to using a SelectQuery) for performance reasons and then update the
    cache so I can continue within the same data context.

    Gili

    -- 
    http://www.desktopbeautifier.com/
    



    This archive was generated by hypermail 2.0.0 : Sun Sep 04 2005 - 16:48:45 EDT