Hi cghersi,
can you check the table in question on the DB side to see that it is configured
to autoincrement an ID column. You haven't mentioned what DB you are using, so
here is an example for MySQL (see 'auto_increment' in the 'Extra' column) :
> desc mytable;
+--------------------------------+--------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra
|
+--------------------------------+--------------+------+-----+---------+----------------+
| ID | int(11) | NO | PRI | NULL |
auto_increment |
| EMAIL | varchar(128) | NO | UNI | NULL |
|
Cheers,
Andrus
On Mar 5, 2012, at 10:57 AM, cghersi wrote:
> Hi all,
>
> I'm using Cayenne 3.0. For more then 1 year we hadn't got any issue; now,
> suddenly, sometimes it appears a strange Exception: "Temporary ID hasn't
> been replaced on commit".
> It appears on an object whose table has an autogenerated PK.
>
> What can I do to avoid such a situation?
>
> Thank you very much.
> Best
> cghersi
>
>
> --
> View this message in context:
> http://cayenne.195.n3.nabble.com/Temporary-ID-hasn-t-been-replaced-on-commit-tp3801043p3801043.html
> Sent from the Cayenne - User mailing list archive at Nabble.com.
>