Re: Calling commitChanges() from inside postPersist()

2007-03-06 Thread Andrus Adamchik
Sam, this could be a bug in the lifecycle (I haven't looked, I am in a time crunch now). Could you open a bug report documenting your findings. Thanks Andrus On Mar 6, 2007, at 2:59 AM, Sam Shah wrote: Hi, in a postPersist() callback method I'm trying to get a local copy of the committed

Calling commitChanges() from inside postPersist()

2007-03-05 Thread Sam Shah
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.CayenneRun