Archive for January, 2011

Solution: “Temporary ID hasn’t been replaced on commit” when using Cayenne
Monday, January 24th, 2011

Problem When committing changes to a Cayenne context, you get an exception like the following. org.apache.cayenne.CayenneRuntimeException: (v.3.0.1 Sep 06 2010 15:09:38) Temporary ID hasn’t been replaced on commit Cause You are trying to commit an object for which Cayenne does not know how to generate a permanent id. This in turn typically happens when the [...]

Solution: “Error generating PK : entity not supported” when using Cayenne
Thursday, January 13th, 2011

Problem When committing changes to a Cayenne context, you get an exception like the following. org.apache.cayenne.CayenneRuntimeException: (v.3.0.1 Sep 06 2010 15:09:38) Error generating PK : entity not supported: SOME_TABLE Cause A column that is part of the primary key of SOME_TABLE has no value. Therefore Cayenne tries to generate one, but does not know how [...]