Hi Andrus, thank you for the fast reply!

The DB is MySQL.
The table is created with a code like this:
CREATE TABLE PhysicalNode (AdditionalArgs VARCHAR(4000) NULL, BatteryLevel
SMALLINT NULL, CoordX DOUBLE NOT NULL, CoordY DOUBLE NOT NULL, CoordZ DOUBLE
NOT NULL, Creation BIGINT NOT NULL, CurrentPwrSrc SMALLINT NULL,
ExpectedLifeTime BIGINT NULL, Id INT NOT NULL AUTO_INCREMENT, IsOnline BOOL
NOT NULL, Label VARCHAR(255) NOT NULL, LastBatteryChange BIGINT NULL,
LastMaintenance BIGINT NULL, LastStatusTime BIGINT NULL, MacAddress LONGBLOB
NOT NULL, NSAP LONGBLOB NOT NULL, NetworkId INT NOT NULL, SignalRange FLOAT
NULL, Type SMALLINT NOT NULL, WakeupPolicy SMALLINT NULL, PRIMARY KEY (Id))
ENGINE=InnoDB
;

You can see the PK is "Id" and it is AUTO_INCREMENT.

--
View this message in context: 
http://cayenne.195.n3.nabble.com/Temporary-ID-hasn-t-been-replaced-on-commit-tp3801043p3801088.html
Sent from the Cayenne - User mailing list archive at Nabble.com.

Reply via email to