Re: Synchronizing Cayenne state with DB?

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Sun Aug 28 2005 - 16:12:36 EDT

  • Next message: Andrus Adamchik: "Re: Lazily column retrieval"

    On Aug 27, 2005, at 6:52 PM, Gili wrote:
    > Hi,
    >
    > The documentation mentions that it is possible that when I
    > modify the DB state using raw SQL it might fall out of sync with
    > the Cayenne memory model. How then does one resync the two?

    A number of ways depending on your use patterns. Create a new
    DataContext; rerun a select query; use DataContext.invalidateObjects()

    Andrus



    This archive was generated by hypermail 2.0.0 : Sun Aug 28 2005 - 16:12:38 EDT