cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: Temporary ID hasn't been replaced on commit
Date Mon, 05 Mar 2012 16:34:18 GMT
Looks good. If it is also "Database-generated" in Cayenne model, then everything I can think
of is correct.

Based on the information that you've provided, I can't think of anything else Cayenne-related
that might cause it :-/

Andrus

On Mar 5, 2012, at 11:10 AM, cghersi wrote:
> 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.
> 


Mime
View raw message