cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <>
Subject Re: Identity PK value
Date Fri, 15 Jun 2007 14:11:32 GMT

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:


View raw message