Calling commitChanges() from inside postPersist()

From: Sam Shah (sa..sh.com.au)
Date: Mon Mar 05 2007 - 19:59:26 EST

  • Next message: Aristedes Maniatis: "Re: java docs"

    Hi, in a postPersist() callback method I'm trying to get a local copy
    of the committed object into a new context. The object is already in
    the database, I've checked the raw data but cayenne is returning an
    object with a temporary id. The error I'm getting is -

    org.apache.cayenne.CayenneRuntimeException: [v.3.0-SNAPSHOT Jan 19
    2007 05:26:38] Exception processing message
    org.apache.cayenne.remote.SyncMessage. Root cause: [v.3.0-SNAPSHOT
    Jan 19 2007 05:26:38] Error resolving fault for ObjectId:
    <ObjectId:PaymentIn, TEMP:000004BBD0643E95> and state (hollow).
    Possible cause - matching row is missing from the database.

    What am I doing wrong?



    This archive was generated by hypermail 2.0.0 : Mon Mar 05 2007 - 19:59:58 EST