On Jun 15, 2007, at 4:56 PM, Marc Gabriel-Willem wrote:
I would like to have the PK value before the commit ! Is there any way to do that ?
Unfortunately no, as JDBC driver returns it only after the row is inserted. If what you want to do is modify this or some other object in the same transaction, you can achieve that using custom transactions wrapping multiple context.commitChanges() calls. This requires a bit of extra code though:
http://cayenne.apache.org/doc/understanding-transactions.html Andrus
